From 03b599bc564247dc79d0365c727f8f89e5e46ac2 Mon Sep 17 00:00:00 2001 From: shockrah Date: Fri, 13 May 2022 23:05:14 -0700 Subject: [PATCH] testing something random idk --- .gitlab-ci.yml | 67 ++++++++++++++++++++++++++++---------------------- 1 file changed, 37 insertions(+), 30 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 89111f3..62e6b1e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,7 @@ image: docker stages: + - build - default variables: @@ -9,36 +10,42 @@ variables: before_script: - docker login --username $USER --password $PASS - -build-freechat-prod: - # Can't use variables section here due to the sub shell being invoked here - before_script: - - export VERSION="$(date +%d-%m-%Y)" - - stage: default - only: - refs: - - master - changes: - - Freechat/Dockerfile +dummy: script: - - cd Freechat/ - - echo $VERSION - - docker build -t freechat . - - docker tag freechat "$USER/freechat:$VERSION" - - docker push "$USER/freechat:$VERSION" + - echo $env_var + - echo $env_file + - cat $env_file -build-freechat-pipeline: - stage: default - only: - refs: - - master - changes: - - freechat-pipeline/entrypoint.sh - - freechat-pipeline/Dockerfile - script: - - cd freechat-pipeline/ - - docker build -t freechat-pipeline . - - docker tag freechat-pipeline "$USER/freechat-pipeline:latest" - - docker push "$USER/freechat-pipeline:latest" + #build-freechat-prod: + # # Can't use variables section here due to the sub shell being invoked here + # before_script: + # - export VERSION="$(date +%d-%m-%Y)" + # + # stage: default + # only: + # refs: + # - master + # changes: + # - Freechat/Dockerfile + # script: + # - cd Freechat/ + # - echo $VERSION + # - docker build -t freechat . + # - docker tag freechat "$USER/freechat:$VERSION" + # - docker push "$USER/freechat:$VERSION" + # + # + #build-freechat-pipeline: + # stage: default + # only: + # refs: + # - master + # changes: + # - freechat-pipeline/entrypoint.sh + # - freechat-pipeline/Dockerfile + # script: + # - cd freechat-pipeline/ + # - docker build -t freechat-pipeline . + # - docker tag freechat-pipeline "$USER/freechat-pipeline:latest" + # - docker push "$USER/freechat-pipeline:latest"