Skip to content

Commit 8422250

Browse files
committed
chore(actions): split discord-bot image names by environment
1 parent 8b9b927 commit 8422250

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/docker.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Build projects-bot
33
on:
44
push:
55

6+
env:
7+
IMAGE_NAME: ${{ github.ref_name == 'projects-bot' && 'projects-discord-bot' || 'projects-discord-bot-qa' }}
8+
69
jobs:
710
format-lint-check:
811
name: "Format & lint check"
@@ -46,8 +49,8 @@ jobs:
4649
platforms: linux/amd64
4750
file: Dockerfile
4851
tags: |
49-
ghcr.io/csesoc/projects-discord-bot:${{ github.sha }}
50-
ghcr.io/csesoc/projects-discord-bot:latest
52+
ghcr.io/csesoc/${{ env.IMAGE_NAME }}:${{ github.sha }}
53+
ghcr.io/csesoc/${{ env.IMAGE_NAME }}:latest
5154
labels: ${{ steps.meta.outputs.labels }}
5255
deploy:
5356
name: Deploy (CD)
@@ -67,4 +70,4 @@ jobs:
6770
repository: deployment
6871
ref: develop
6972
updates: |
70-
ghcr.io/csesoc/projects-discord-bot=${{ github.sha }}
73+
ghcr.io/csesoc/${{ env.IMAGE_NAME }}=${{ github.sha }}

0 commit comments

Comments
 (0)