From d98e1ba3bed7b57898396b82f34c8387145ae529 Mon Sep 17 00:00:00 2001 From: togir <marvin@weiler.rocks> Date: Tue, 8 Mar 2022 13:19:57 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 829e783..f81662c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,6 +7,10 @@ build:x86_64linux: - if: $CI_COMMIT_TAG stage: build image: rust:1-buster + cache: + key: x86_64linux + paths: + - target/x86_64-unknown-linux-gnu before_script: - rustup target add i686-unknown-linux-gnu script: @@ -35,6 +39,7 @@ container: name: gcr.io/kaniko-project/executor:debug entrypoint: [""] script: + - mkdir -p ./target/release/ - cp ./target/x86_64-unknown-linux-gnu/release/amd-scrapper ./target/release/amd-scrapper - 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 -- GitLab