Skip to content

Commit e2902df

Browse files
committed
One image tag retry
1 parent c71ff2b commit e2902df

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/build_test_push.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build Push to GHCR
1+
name: Build & Push to GHCR
22

33
on:
44
push:
@@ -11,7 +11,7 @@ permissions:
1111
packages: write
1212

1313
jobs:
14-
build-test-push:
14+
build:
1515
runs-on: ubuntu-latest
1616

1717
steps:
@@ -45,19 +45,19 @@ jobs:
4545
images: |
4646
ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}
4747
tags: |
48-
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
49-
type=sha
50-
type=ref,event=tag
48+
type=raw,value=latest
5149
52-
# Only push if tests passed
53-
- name: Push Docker image
50+
# Build & push using Bake with your compose file
51+
- name: Build and push
5452
uses: docker/bake-action@v5
5553
with:
5654
files: |
5755
docker-compose.yaml
56+
# Push images instead of just building
5857
push: true
58+
# Apply extra settings across all targets
5959
set: |
6060
*.platform=linux/amd64
6161
*.cache-from=type=gha
6262
*.cache-to=type=gha,mode=max
63-
deepvisionxplain.tags=test-image:latest
63+
deepvisionxplain.tags=${{ steps.meta.outputs.tags }}

0 commit comments

Comments
 (0)