Skip to content

Commit 8c804bc

Browse files
Fixed missing labels / annotations in run_db_trigger reusable workflow (#42)
1 parent ff8ccb9 commit 8c804bc

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

.github/workflows/run_db_trigger.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -124,22 +124,24 @@ jobs:
124124
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
125125
tags: |
126126
type=ref,event=branch
127+
127128
128129
- name: Set up QEMU
129130
uses: docker/setup-qemu-action@v3
130131
- name: Set up Docker Buildx
131132
uses: docker/setup-buildx-action@v3
132133

133134
- name: Build and push the database image
134-
run: |
135-
docker buildx build \
136-
--no-cache \
137-
--platform linux/amd64,linux/arm64 \
138-
--build-arg DATA_DIR=${{ env.TMP_DATA_DIR }} \
139-
--push \
140-
-f Dockerfile.seed \
141-
--tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest \
142-
.
135+
uses: docker/build-push-action@v5
136+
with:
137+
file: Dockerfile.seed
138+
context: .
139+
build-args: DATA_DIR=${{ env.TMP_DATA_DIR }}
140+
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
141+
platforms: linux/amd64,linux/arm64
142+
labels: ${{ steps.meta.outputs.labels }}
143+
annotations: ${{ steps.meta.outputs.annotations }}
144+
push: true
143145

144146
notify_slack:
145147
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)