File tree Expand file tree Collapse file tree 2 files changed +6
-20
lines changed Expand file tree Collapse file tree 2 files changed +6
-20
lines changed Original file line number Diff line number Diff line change 9191 # This step uses the identity token to provision an ephemeral certificate
9292 # against the sigstore community Fulcio instance.
9393 run : echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}
94-
95- test_dockerfile :
96- runs-on : ubuntu-latest
97-
98- steps :
99- - name : Checkout repository
100- uses : actions/checkout@v4
101-
102- - name : Set up Docker Buildx
103- uses : docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0
104-
105- - name : Build Docker image
106- uses : docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
107- with :
108- context : .
109- load : true
110- tags : test-image:latest
111-
112- - name : Run tests
113- run : docker run --rm test-image:latest /path/to/your/test/script.sh
Original file line number Diff line number Diff line change @@ -30,6 +30,12 @@ ENV CC=/usr/bin/gcc
3030ENV CXX=/usr/bin/g++
3131ENV LD_LIBRARY_PATH=/usr/local/lib
3232
33+ # Set the working directory
34+ WORKDIR /usr/src/app
35+
36+ # Copy the source code
37+ COPY . .
38+
3339# Set the working directory
3440RUN meson setup builddir
3541RUN meson compile -C builddir
You can’t perform that action at this time.
0 commit comments