2021-06-07 17:42:50 +00:00
|
|
|
image: docker
|
|
|
|
|
|
|
|
stages:
|
2022-05-14 06:05:14 +00:00
|
|
|
- build
|
2021-06-07 17:42:50 +00:00
|
|
|
- default
|
|
|
|
|
|
|
|
variables:
|
|
|
|
USER: shockrah
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- docker login --username $USER --password $PASS
|
|
|
|
|
2022-05-14 06:05:14 +00:00
|
|
|
dummy:
|
2022-05-14 06:06:28 +00:00
|
|
|
stage: build
|
2021-06-07 17:42:50 +00:00
|
|
|
script:
|
2022-05-14 06:05:14 +00:00
|
|
|
- echo $env_var
|
|
|
|
- echo $env_file
|
|
|
|
- cat $env_file
|
|
|
|
|
|
|
|
|
|
|
|
#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"
|