testing something random idk
This commit is contained in:
parent
435d4e59c8
commit
03b599bc56
@ -1,6 +1,7 @@
|
|||||||
image: docker
|
image: docker
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
|
- build
|
||||||
- default
|
- default
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
@ -9,36 +10,42 @@ variables:
|
|||||||
before_script:
|
before_script:
|
||||||
- docker login --username $USER --password $PASS
|
- docker login --username $USER --password $PASS
|
||||||
|
|
||||||
|
dummy:
|
||||||
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:
|
script:
|
||||||
- cd Freechat/
|
- echo $env_var
|
||||||
- echo $VERSION
|
- echo $env_file
|
||||||
- docker build -t freechat .
|
- cat $env_file
|
||||||
- docker tag freechat "$USER/freechat:$VERSION"
|
|
||||||
- docker push "$USER/freechat:$VERSION"
|
|
||||||
|
|
||||||
|
|
||||||
build-freechat-pipeline:
|
#build-freechat-prod:
|
||||||
stage: default
|
# # Can't use variables section here due to the sub shell being invoked here
|
||||||
only:
|
# before_script:
|
||||||
refs:
|
# - export VERSION="$(date +%d-%m-%Y)"
|
||||||
- master
|
#
|
||||||
changes:
|
# stage: default
|
||||||
- freechat-pipeline/entrypoint.sh
|
# only:
|
||||||
- freechat-pipeline/Dockerfile
|
# refs:
|
||||||
script:
|
# - master
|
||||||
- cd freechat-pipeline/
|
# changes:
|
||||||
- docker build -t freechat-pipeline .
|
# - Freechat/Dockerfile
|
||||||
- docker tag freechat-pipeline "$USER/freechat-pipeline:latest"
|
# script:
|
||||||
- docker push "$USER/freechat-pipeline:latest"
|
# - 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"
|
||||||
|
Loading…
Reference in New Issue
Block a user