Skip to content

Commit b885c40

Browse files
init
1 parent 91615ff commit b885c40

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/cicd.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ on:
66
push:
77
branches: ['main']
88

9+
defaults:
10+
run:
11+
working-directory: ./src/base/src/.devcontainer
12+
13+
914
# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
1015
env:
1116
REGISTRY: ghcr.io
@@ -44,17 +49,15 @@ jobs:
4449
- name: Build and push Docker image
4550
id: push
4651
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
47-
working-directory: ./src/base/src/.devcontainer
4852
with:
49-
context: .
53+
context: ./src/base/src/.devcontainer
5054
push: true
5155
tags: ${{ steps.meta.outputs.tags }}
5256
labels: ${{ steps.meta.outputs.labels }}
5357

5458
# This step generates an artifact attestation for the image, which is an unforgeable statement about where and how it was built. It increases supply chain security for people who consume the image. For more information, see [Using artifact attestations to establish provenance for builds](/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds).
5559
- name: Generate artifact attestation
5660
uses: actions/attest-build-provenance@v3
57-
working-directory: ./src/base/src/.devcontainer
5861
with:
5962
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
6063
subject-digest: ${{ steps.push.outputs.digest }}

0 commit comments

Comments
 (0)