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: ...@@ -3,7 +3,6 @@ variables:
stages: stages:
- build - build
- push
- deploy - deploy
Build Container: Build Container:
...@@ -16,25 +15,16 @@ Build Container: ...@@ -16,25 +15,16 @@ Build Container:
script: script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker build -t $CI_REGISTRY/$CI_PROJECT_PATH . - 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 - docker push $CI_REGISTRY/$CI_PROJECT_PATH:latest
Deploy Container: Deploy Container:
stage: deploy stage: deploy
only: only:
- main - main
tags: tags:
- sam - sam
needs: ["Push Container"] needs: ["Build Container"]
script: script:
- cp ./docker-compose.yml $app_path/docker-compose.yml - cp ./docker-compose.yml $app_path/docker-compose.yml
- cp ./default.conf $app_path/default.conf - 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