mirror of
https://github.com/offen/website.git
synced 2024-11-22 01:00:26 +01:00
do not use bashenv in alpine based image
This commit is contained in:
parent
93014da8a8
commit
9d59aa0527
@ -160,16 +160,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- setup_remote_docker
|
- setup_remote_docker
|
||||||
- run:
|
|
||||||
name: Define target environment
|
|
||||||
command: |
|
|
||||||
if [ "${CIRCLE_BRANCH}" == "master" ]; then
|
|
||||||
echo 'export SITEURL="https://www.offen.dev"' >> $BASH_ENV
|
|
||||||
echo 'export DOCKER_IMAGE_TAG="stable"' >> $BASH_ENV
|
|
||||||
else
|
|
||||||
echo 'export SITEURL="https://staging.offen.dev"' >> $BASH_ENV
|
|
||||||
echo 'export DOCKER_IMAGE_TAG="latest"' >> $BASH_ENV
|
|
||||||
fi
|
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
keys:
|
keys:
|
||||||
- v1-{{ .Branch }}
|
- v1-{{ .Branch }}
|
||||||
@ -185,6 +175,13 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: Build application Docker image
|
name: Build application Docker image
|
||||||
command: |
|
command: |
|
||||||
|
if [ "${CIRCLE_BRANCH}" == "master" ]; then
|
||||||
|
export SITEURL="https://www.offen.dev"
|
||||||
|
export DOCKER_IMAGE_TAG="stable"
|
||||||
|
else
|
||||||
|
export SITEURL="https://staging.offen.dev"
|
||||||
|
export DOCKER_IMAGE_TAG="latest"
|
||||||
|
fi
|
||||||
docker build -t offen/server:$DOCKER_IMAGE_TAG -f build/server/Dockerfile .
|
docker build -t offen/server:$DOCKER_IMAGE_TAG -f build/server/Dockerfile .
|
||||||
docker build --build-arg siteurl=$SITEURL -t offen/proxy:$DOCKER_IMAGE_TAG -f build/proxy/Dockerfile .
|
docker build --build-arg siteurl=$SITEURL -t offen/proxy:$DOCKER_IMAGE_TAG -f build/proxy/Dockerfile .
|
||||||
- run:
|
- run:
|
||||||
@ -201,6 +198,11 @@ jobs:
|
|||||||
- deploy:
|
- deploy:
|
||||||
name: Push application Docker image
|
name: Push application Docker image
|
||||||
command: |
|
command: |
|
||||||
|
if [ "${CIRCLE_BRANCH}" == "master" ]; then
|
||||||
|
export DOCKER_IMAGE_TAG="stable"
|
||||||
|
else
|
||||||
|
export DOCKER_IMAGE_TAG="latest"
|
||||||
|
fi
|
||||||
echo "$DOCKER_PASS" | docker login --username $DOCKER_USER --password-stdin
|
echo "$DOCKER_PASS" | docker login --username $DOCKER_USER --password-stdin
|
||||||
docker push offen/server:$DOCKER_IMAGE_TAG
|
docker push offen/server:$DOCKER_IMAGE_TAG
|
||||||
docker push offen/proxy:$DOCKER_IMAGE_TAG
|
docker push offen/proxy:$DOCKER_IMAGE_TAG
|
||||||
|
Loading…
Reference in New Issue
Block a user