Skip to content
Snippets Groups Projects
Commit da27361b authored by Matthias Bodenbenner's avatar Matthias Bodenbenner
Browse files

fixed pipeline ?

parent d9b6095e
No related branches found
No related tags found
No related merge requests found
Pipeline #486815 passed
......@@ -3,7 +3,6 @@ variables:
stages:
- build
- push
- deploy
Build Container:
......@@ -16,25 +15,16 @@ Build Container:
script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker build -t $CI_REGISTRY/$CI_PROJECT_PATH .
Push Container:
image: docker:20.10
stage: push
only:
- main
tags:
- frodo
script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker push $CI_REGISTRY/$CI_PROJECT_PATH:latest
Deploy Container:
stage: deploy
only:
- main
tags:
- sam
needs: ["Push Container"]
needs: ["Build Container"]
script:
- cp ./docker-compose.yml $app_path/docker-compose.yml
- cp ./default.conf $app_path/default.conf
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment