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

Update .gitlab-ci.yml file

parent 8b0a19c5
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,10 @@ build:x86_64linux: ...@@ -7,6 +7,10 @@ build:x86_64linux:
- if: $CI_COMMIT_TAG - if: $CI_COMMIT_TAG
stage: build stage: build
image: rust:1-buster image: rust:1-buster
cache:
key: x86_64linux
paths:
- target/x86_64-unknown-linux-gnu
before_script: before_script:
- rustup target add i686-unknown-linux-gnu - rustup target add i686-unknown-linux-gnu
script: script:
...@@ -35,6 +39,7 @@ container: ...@@ -35,6 +39,7 @@ container:
name: gcr.io/kaniko-project/executor:debug name: gcr.io/kaniko-project/executor:debug
entrypoint: [""] entrypoint: [""]
script: script:
- mkdir -p ./target/release/
- cp ./target/x86_64-unknown-linux-gnu/release/amd-scrapper ./target/release/amd-scrapper - cp ./target/x86_64-unknown-linux-gnu/release/amd-scrapper ./target/release/amd-scrapper
- mkdir -p /kaniko/.docker - 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 - echo "{\"auths\":{\"${CI_REGISTRY}\":{\"auth\":\"$(printf "%s:%s" "${CI_REGISTRY_USER}" "${CI_REGISTRY_PASSWORD}" | base64 | tr -d '\n')\"}}}" > /kaniko/.docker/config.json
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment