diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0606cf98d117348787aa1075a1f14162588a9b0f..da96b021608df4f7b04fd8a1ff399cd1024f38c5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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