Skip to content

Instantly share code, notes, and snippets.

@typoworx-de
Created March 15, 2023 12:11
Show Gist options
  • Save typoworx-de/cc8bcd648d0112471ca16aac4e66f9dd to your computer and use it in GitHub Desktop.
Save typoworx-de/cc8bcd648d0112471ca16aac4e66f9dd to your computer and use it in GitHub Desktop.
firecow/gitlab-ci-local: testing artifacts fails
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"
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 .
# 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