Skip to content

Commit

Permalink
fix very broken github builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
matatonic committed Oct 10, 2024
1 parent da05163 commit baa9b08
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ jobs:
with:
context: .
build-args: |
VERSION=alt
GROUP_ID=1000
USER_ID=1000
file: Dockerfile
Expand All @@ -164,3 +163,20 @@ jobs:
${{ env.DOCKER_REGISTRY }}/${{ env.IMAGE_NAME }}:latest
labels: version=${{ github.run_id }}

# For tagged releases, build and push the Docker image with the corresponding tag
- name: Build and Push Docker Image (Tagged)
if: startsWith(github.ref, 'refs/tags/')
uses: docker/build-push-action@v4
with:
context: .
build-args: |
VERSION=alt
GROUP_ID=1000
USER_ID=1000
file: Dockerfile
push: true
tags: |
${{ env.DOCKER_REGISTRY }}/${{ env.IMAGE_NAME }}-alt:${{ github.ref_name }}
${{ env.DOCKER_REGISTRY }}/${{ env.IMAGE_NAME }}-alt:latest
labels: version=${{ github.run_id }}

0 comments on commit baa9b08

Please sign in to comment.