trying to fix gitlab ci
This commit is contained in:
+3
-9
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user