diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 829e783f99a86d7869dd2d49a5bf9ccfb61c3807..f81662c9aab9e2854d12a8946942b7defffc1545 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