Skip to content

Commit

Permalink
Build images for branch pushes and tags, but only mark releases as 'l…
Browse files Browse the repository at this point in the history
…atest' image.
  • Loading branch information
flyte committed May 13, 2021
1 parent d1a0f8e commit 6297a22
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:

build_docker_image:
name: Build Docker Image
# if: github.event_name == 'release' && github.event.action == 'created'
if: (github.event_name == 'release' && github.event.action == 'created') || github.event_name == 'push'
runs-on: ubuntu-20.04
needs: test
steps:
Expand All @@ -60,7 +60,12 @@ jobs:
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- run: docker buildx build --platform linux/arm/v7,linux/arm64/v8,linux/amd64 -t flyte/mqtt-io --push --build-arg BUILDX_QEMU_ENV=true .
- if: github.event_name == 'release' && github.event.action == 'created'
run: |
docker buildx build --platform linux/arm/v7,linux/arm64/v8,linux/amd64 -t flyte/mqtt-io:${GITHUB_REF:10} -t flyte/mqtt-io:latest --push --build-arg BUILDX_QEMU_ENV=true .
- if: github.event_name == 'push'
run: |
docker buildx build --platform linux/arm/v7,linux/arm64/v8,linux/amd64 -t flyte/mqtt-io:${GITHUB_REF:11} --push --build-arg BUILDX_QEMU_ENV=true .
generate_docs:
name: Generate Documentation
Expand Down

0 comments on commit 6297a22

Please sign in to comment.