v1.3.2: Fix GitHub Actions build

This commit is contained in:
2021-03-06 15:15:49 +00:00
parent ec9e6ca83c
commit a1afff76fb

View File

@@ -1,7 +1,7 @@
name: Build name: Build
on: on:
push: push:
branches: main tags: *
jobs: jobs:
build: build:
@@ -14,8 +14,8 @@ jobs:
- name: Build image for GitHub Package Registry - name: Build image for GitHub Package Registry
run: | run: |
docker build . --file Dockerfile --tag docker.pkg.github.com/luketainton/ipilot/ipilot:latest docker build . --file Dockerfile --tag docker.pkg.github.com/luketainton/ipilot/ipilot:latest
docker build . --file Dockerfile --tag docker.pkg.github.com/luketainton/ipilot/ipilot:$GITHUB_SHA docker build . --file Dockerfile --tag docker.pkg.github.com/luketainton/ipilot/ipilot:$GITHUB_REF
- name: Push image to GitHub Package Registry - name: Push image to GitHub Package Registry
run: | run: |
docker push docker.pkg.github.com/luketainton/ipilot/ipilot:latest docker push docker.pkg.github.com/luketainton/ipilot/ipilot:latest
docker push docker.pkg.github.com/luketainton/ipilot/ipilot:$GITHUB_SHA docker push docker.pkg.github.com/luketainton/ipilot/ipilot:$GITHUB_REF