Skip to content

Commit 92de10c

Browse files
ci: pass BUILD_ID into Docker build
- Add --build-arg BUILD_ID=${{ github.run_id }} to docker build step - Ensures index.html placeholder {{BUILD_ID}} is replaced with the actual run ID - Keeps artifact upload step unchanged
1 parent e366e07 commit 92de10c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/ci-pipeline.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ jobs:
2222

2323
- name: Set up Docker Buildx
2424
uses: docker/setup-buildx-action@v3
25-
25+
2626
- name: Build sample image
2727
run: |
2828
docker build --build-arg BUILD_ID=${{ github.run_id }} \
29-
-t myorg/sample-app:ci-${{ github.run_id }} \
30-
./exercises/02-containerize-app/app
29+
-t myorg/sample-app:ci-${{ github.run_id }} \
30+
./exercises/02-containerize-app/app
3131
3232
- name: Upload linux artifact
3333
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)