From c140b1eaa967cd8d48d396f81d97cf94ecddf844 Mon Sep 17 00:00:00 2001
From: Jonas Leder <jonas@jonasled.de>
Date: Wed, 2 Dec 2020 20:18:38 +0100
Subject: [PATCH] removed / before app in copy
---
.gitlab-ci.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 22b723c..a32195f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -15,7 +15,7 @@ build: #This will be executed on every push. It builds an docker image, which is
- master
script:
- echo "building for branch $CI_COMMIT_REF_NAME, current date:" `date`
- - cp VERSION /app/
+ - cp VERSION app/
- sudo docker image prune -f #Delete old unused images
- sudo docker pull python:3
- sudo docker build -t gitlab.jonasled.de/jonasled/url_shorter_docker:$CI_COMMIT_REF_NAME . #Build the image with the name already set to push
@@ -34,7 +34,7 @@ build-release: #This will be executed if you push on master, it makes a new rele
- git config --global user.email "noreply@jonasled.de"
- git tag -a $version -m "$version" #add a tag with the current version
- git push --tags -o ci.skip ssh://git@gitlab.jonasled.de:2222/jonasled/url_shorter_docker #Push the tag to the repo ci.skip means don't build the image again. I've configured an ssh key for the runner user,so it can push via ssh.
- - cp VERSION /app/
+ - cp VERSION app/
- sudo docker image prune -f #Delete old unused images
- sudo docker pull python:3
- sudo docker build -t gitlab.jonasled.de/jonasled/url_shorter_docker . #Build the image with the name already set to push
--
GitLab