File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed
Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -52,16 +52,14 @@ jobs:
5252 run : |
5353 echo "DEPLOYMENT_TARGET=production" >> $GITHUB_ENV
5454 echo "RELEASE_TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
55- echo "DEPLOYMENT_HOST=${{secrets.DEPLOY_HOST}}" >> $GITHUB_ENV
56- echo "DISCORD_TOKEN=${{secrets.DISCORD_TOKEN}}" >> $GITHUB_ENV
55+ echo "DOCKER_TAG=latest-prod" >> $GITHUB_ENV
5756
5857 # set target deployment to staging on push
5958 - name : Configuration for pushes
6059 if : ${{ github.event_name == 'push' }}
6160 run : |
6261 echo "DEPLOYMENT_TARGET=staging" >> $GITHUB_ENV
63- echo "DEPLOYMENT_HOST=${{secrets.STAGING_DEPLOY_HOST}}" >> $GITHUB_ENV
64- echo "DISCORD_TOKEN=${{secrets.STAGING_DISCORD_TOKEN}}" >> $GITHUB_ENV
62+ echo "DOCKER_TAG=latest-staging" >> $GITHUB_ENV
6563
6664 - name : Set up Docker Buildx
6765 uses : docker/setup-buildx-action@v1
8078 cache-from : uwcsclub/codey-bot:cache
8179 file : docker/${{env.DEPLOYMENT_TARGET}}/Dockerfile
8280 push : true
83- tags : uwcsclub/codey-bot:latest
81+ tags : uwcsclub/codey-bot:${{ env.DOCKER_TAG }}
8482
8583 - name : Image digest
8684 run : echo ${{ steps.docker_build.outputs.digest }}
Original file line number Diff line number Diff line change 11services :
22 codey-bot :
3- image : uwcsclub/codey-bot:latest
3+ image : uwcsclub/codey-bot:latest-prod
44 container_name : codey-production
55 restart : always
66 env_file :
Original file line number Diff line number Diff line change 11services :
22 codey-bot :
3- image : uwcsclub/codey-bot:latest
3+ image : uwcsclub/codey-bot:latest-staging
44 container_name : codey-staging
55 restart : always
66 env_file :
You can’t perform that action at this time.
0 commit comments