Skip to content

Commit 3f3018c

Browse files
Updated tags
1 parent 0305e92 commit 3f3018c

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff 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
@@ -80,7 +78,7 @@ jobs:
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 }}

docker/production/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
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:

docker/staging/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
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:

0 commit comments

Comments
 (0)