Skip to content

Commit

Permalink
sed final (leave second line of dockerfile empty)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArshiAAkhavan committed Feb 27, 2021
1 parent 8688a3c commit 04972b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var-check:
- echo "image url == $IMAGE_URL"
- echo "ip ======== $SWARM_MANAGER_SERVER"
script:
- sed -i "1 i\ENV TOF_MODE=$CI_COMMIT_BRANCH" Dockerfile
- sed -i "2 i\ENV TOF_MODE=$CI_COMMIT_BRANCH" Dockerfile
- cat Dockerfile
build-push-image:
stage: publish-image
Expand All @@ -48,7 +48,7 @@ build-push-image:
- mkdir -p /kaniko/.docker/
- echo "{\"auths\":{\"$SSC_REGISTRY_URL\":{\"username\":\"$SSC_REGISTRY_USERNAME\",\"password\":\"$SSC_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- echo pushing image $IMAGE_URL to registry
- sed -i "1 i\ENV TOF_MODE=$CI_COMMIT_BRANCH" Dockerfile
- sed -i "2 i\ENV TOF_MODE=$CI_COMMIT_BRANCH" Dockerfile
- cat Dockerfile

script:
Expand Down

0 comments on commit 04972b8

Please sign in to comment.