Browse Source

Update github-action

pull/109/head
Per-Arne Andersen 4 years ago
parent
commit
38cef845b6
  1. 24
      .github/workflows/image.yml

24
.github/workflows/image.yml

@ -26,24 +26,24 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }} password: ${{ secrets.DOCKER_PASSWORD }}
if: github.ref == 'refs/heads/main' -
- name: Build and push main
name: Build and push uses: docker/build-push-action@v2
uses: docker/build-push-action@v2 with:
with: context: .
context: . platforms: linux/amd64,linux/arm64
platforms: linux/amd64,linux/arm64 push: true
push: true tags: perara/wg-manager:latest
tags: perara/wg-manager:latest if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/dev' -
- name: Build and push dev
name: Build and push
uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
with: with:
context: . context: .
platforms: linux/amd64,linux/arm64 platforms: linux/amd64,linux/arm64
push: true push: true
tags: perara/wg-manager:dev tags: perara/wg-manager:dev
if: github.ref == 'refs/heads/dev'

Loading…
Cancel
Save