-
Notifications
You must be signed in to change notification settings - Fork 1
executable file
·41 lines (40 loc) · 1.25 KB
/
build-dev.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Build and push dev image
on:
push:
branches:
- 'master'
- 'dev'
jobs:
build-push-dev:
container:
image: ghcr.io/lolibrary/builder
credentials:
username: ${{ github.actor }}
password: ${{ secrets.PAT }}
runs-on: ubuntu-latest
steps:
- name: Checkout build tools
uses: actions/checkout@v2
with:
repository: lolibrary/build
token: ${{ secrets.PAT }}
- name: Checkout Sakura
uses: actions/checkout@v2
with:
path: cache
- name: GHCR login
uses: docker/login-action@v1
with:
username: ${{ github.actor }}
password: ${{ secrets.PAT }}
registry: ghcr.io
- name: Move fontfiles
run: cp fortawesome* cache/
- name: Docker Build & Push
run: |
docker build -t $DOCKER_SHA_TAG -t $DOCKER_LATEST_TAG --build-arg NOVA_USERNAME=${{ secrets.NOVA_USERNAME }} --build-arg NOVA_API_KEY=${{ secrets.NOVA_API_KEY }} -f cache/dev-dockerfile ./cache/
docker push $DOCKER_SHA_TAG
docker push $DOCKER_LATEST_TAG
env:
DOCKER_SHA_TAG: "ghcr.io/lolibrary/sakura-dev:${{ github.sha }}"
DOCKER_LATEST_TAG: "ghcr.io/lolibrary/sakura-dev:latest"