Skip to content

Commit

Permalink
build image on all branches
Browse files Browse the repository at this point in the history
  • Loading branch information
finn-block committed Oct 6, 2023
1 parent bf45f2e commit 1dd8556
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/docker-image-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ name: Create and publish a Docker image

on:
push:
branches: ['main']
branches: ['*']
workflow_dispatch:

env:
Expand Down Expand Up @@ -49,13 +49,23 @@ jobs:
env:
IMAGE_NAME: ${{ env.IMAGE_NAME }}

- name: Build and push Docker image
- name: Build and push Docker image (branch tag)
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
context: .
file: Dockerfile
push: true
tags: |
${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

- name: Build and push Docker image (sdk tag)
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
if: github.ref == 'refs/heads/main'
with:
context: .
file: Dockerfile
push: true
tags: |
${{ steps.dwn_sdk_version.outputs.dwn_sdk_image_tag }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 1dd8556

Please sign in to comment.