Skip to content

Commit

Permalink
Merge pull request #7 from bacpop/version-docker
Browse files Browse the repository at this point in the history
Add version tags to docker image
  • Loading branch information
johnlees authored May 12, 2022
2 parents 023d88f + 6e88f14 commit 97e6db0
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/docker_push.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
name: Build and push Docker image

on:
push:
branches:
- 'master'
tags:
- 'v*'
pull_request:
branches:
- 'master'
create:
tags:
- v*
Expand All @@ -11,6 +19,11 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: poppunk/poppipe
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
Expand All @@ -22,10 +35,11 @@ jobs:
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
push: true
tags: poppunk/poppipe:latest
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
file: docker/Dockerfile
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}

0 comments on commit 97e6db0

Please sign in to comment.