Skip to content
Snippets Groups Projects
Commit bcbd1ca8 authored by Marvin Weiler's avatar Marvin Weiler
Browse files

Added a Dockerfile and a gitlab ci file

parent 5deb3436
No related branches found
No related tags found
No related merge requests found
build:
stage: build
image: rust:latest
script:
- cargo build --release
artifacts:
paths:
- target/release/
rules:
- if: $CI_COMMIT_TAG
container:
stage: distribute
dependencies:
- build
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"${CI_REGISTRY}\":{\"auth\":\"$(printf "%s:%s" "${CI_REGISTRY_USER}" "${CI_REGISTRY_PASSWORD}" | base64 | tr -d '\n')\"}}}" > /kaniko/.docker/config.json
- >-
/kaniko/executor
--context "${CI_PROJECT_DIR}"
--dockerfile "${CI_PROJECT_DIR}/Dockerfile"
--destination "${CI_REGISTRY_IMAGE}:${CI_COMMIT_TAG}"
rules:
- if: $CI_COMMIT_TAG
FROM gcr.io/distroless/cc
COPY ./target/release/amd-scrapper /
CMD ["./amd-scrapper"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment