Created
March 15, 2023 12:11
-
-
Save typoworx-de/cc8bcd648d0112471ca16aac4e66f9dd to your computer and use it in GitHub Desktop.
firecow/gitlab-ci-local: testing artifacts fails
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NEEDS=true | |
CLEANUP=true | |
PRIVILEGED=true | |
MOUNT-CACHE=true | |
VOLUME="/var/run/docker.sock:/var/run/docker.sock" | |
EXTRA-HOST="host.docker.internal:host-gateway" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include: | |
stages: | |
- build | |
build-stage: | |
stage: build | |
artifacts: | |
#expire_in: 15 minutes | |
name: "$CI_JOB_STAGE-$CI_COMMIT_REF_NAME" | |
paths: | |
- /build/* | |
script: | |
- docker build --progress plain -f Dockerfile.artifact . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# syntax = docker/dockerfile:1.4.0 | |
FROM debian:stable-slim AS artifact-test | |
WORKDIR /build | |
RUN \ | |
echo "Test" > /build/my-artifact.txt \ | |
cat /build/my-artifact.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment