Skip to content

Commit

Permalink
Github Action workflow variable fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mkarlesky committed Oct 2, 2024
1 parent 28c866d commit 0a59da7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,16 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: 'Build and push Docker image $IMAGE_BASE_NAME:${{ github.ref_name }}'
- name: 'Build and push Docker image ${{ env.IMAGE_BASE_NAME }}:${{ github.ref_name }}'
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
file: build/standard/docker/Dockerfile
build-args: CONTAINER_VERSION=${{ github.ref_name }}
push: ${{ github.event_name != 'pull_request' }}
tags: $IMAGE_BASE_NAME:${{ github.ref_name }}, $IMAGE_BASE_NAME:latest
tags: ${{ env.IMAGE_BASE_NAME }}:${{ github.ref_name }}, ${{ env.IMAGE_BASE_NAME }}:latest

- name: 'Build and push Docker image $IMAGE_BASE_NAME-$VARIANT:${{ github.ref_name }}'
- name: 'Build and push Docker image ${{ env.IMAGE_BASE_NAME }}-$VARIANT:${{ github.ref_name }}'
env:
VARIANT: plugins
uses: docker/build-push-action@v6
Expand All @@ -58,9 +58,9 @@ jobs:
file: build/$VARIANT/docker/Dockerfile
build-args: CONTAINER_VERSION=${{ github.ref_name }}
push: ${{ github.event_name != 'pull_request' }}
tags: $IMAGE_BASE_NAME-$VARIANT:${{ github.ref_name }}, $IMAGE_BASE_NAME-$VARIANT:latest
tags: ${{ env.IMAGE_BASE_NAME }}-$VARIANT:${{ github.ref_name }}, ${{ env.IMAGE_BASE_NAME }}-$VARIANT:latest

- name: 'Build and push Docker image $IMAGE_BASE_NAME-$VARIANT:${{ github.ref_name }}'
- name: 'Build and push Docker image ${{ env.IMAGE_BASE_NAME }}-$VARIANT:${{ github.ref_name }}'
env:
VARIANT: arm-none-eabi
uses: docker/build-push-action@v6
Expand All @@ -69,9 +69,9 @@ jobs:
file: build/$VARIANT/docker/Dockerfile
build-args: CONTAINER_VERSION=${{ github.ref_name }}
push: ${{ github.event_name != 'pull_request' }}
tags: $IMAGE_BASE_NAME-$VARIANT:${{ github.ref_name }}, $IMAGE_BASE_NAME-$VARIANT:latest
tags: ${{ env.IMAGE_BASE_NAME }}-$VARIANT:${{ github.ref_name }}, ${{ env.IMAGE_BASE_NAME }}-$VARIANT:latest

- name: 'Build and push Docker image $IMAGE_BASE_NAME-$VARIANT:${{ github.ref_name }}'
- name: 'Build and push Docker image ${{ env.IMAGE_BASE_NAME }}-$VARIANT:${{ github.ref_name }}'
env:
VARIANT: arm-none-eabi-plugins
uses: docker/build-push-action@v6
Expand All @@ -80,5 +80,5 @@ jobs:
file: build/$VARIANT/docker/Dockerfile
build-args: CONTAINER_VERSION=${{ github.ref_name }}
push: ${{ github.event_name != 'pull_request' }}
tags: $IMAGE_BASE_NAME-$VARIANT:${{ github.ref_name }}, $IMAGE_BASE_NAME-$VARIANT:latest
tags: ${{ env.IMAGE_BASE_NAME }}-$VARIANT:${{ github.ref_name }}, ${{ env.IMAGE_BASE_NAME }}-$VARIANT:latest

0 comments on commit 0a59da7

Please sign in to comment.