trying to fix gitlab ci

This commit is contained in:
AHMZA
2022-02-23 21:23:58 +00:00
parent dca800bb2a
commit 8073bcb22c
+3 -9
View File
@@ -15,11 +15,9 @@ Build:
- tar -zxf hugo.tar.gz - tar -zxf hugo.tar.gz
- mv hugo /usr/local/bin - mv hugo /usr/local/bin
script: script:
- ls
- hugo - hugo
- ls
- ls public/
artifacts: artifacts:
name: "webfiles"
paths: paths:
- public - public
only: only:
@@ -29,12 +27,8 @@ Build:
Dockerize: Dockerize:
stage: dockerize stage: dockerize
image: image:
name: gcr.io/kaniko-project/executor:debug name: nginx:latest
entrypoint: [""]
script: script:
- mkdir -p /kaniko/.docker - ls
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:latest
only: only:
- main - main