Skip to content

Commit 1fdbdb2

Browse files
committed
fixed tag building from workflow.
1 parent a3371ff commit 1fdbdb2

3 files changed

Lines changed: 16 additions & 4 deletions

File tree

.github/workflows/api.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,16 @@ jobs:
3333
username: ${{ github.actor }}
3434
password: ${{ secrets.GITHUB_TOKEN }}
3535

36+
- name: Get latest tag pushed
37+
id: tag
38+
uses: 32teeth/action-github-tag@v1
39+
3640
- uses: docker/build-push-action@v5
3741
with:
3842
context: .
3943
file: DisBot.API/Dockerfile
4044
platforms: linux/amd64
4145
push: true
4246
tags: |
43-
ghcr.io/disbotdevelopment/disbot-dashboard:${{ github.ref_name }}
47+
ghcr.io/disbotdevelopment/disbot-dashboard:${{ steps.tag.outputs.tag }}
4448
ghcr.io/disbotdevelopment/disbot-api:v2

.github/workflows/bot.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,17 @@ jobs:
3333
registry: ghcr.io
3434
username: ${{ github.actor }}
3535
password: ${{ secrets.GITHUB_TOKEN }}
36-
36+
37+
- name: Get latest tag pushed
38+
id: tag
39+
uses: 32teeth/action-github-tag@v1
40+
3741
- uses: docker/build-push-action@v5
3842
with:
3943
context: .
4044
file: DisBot.DiscordBot/Dockerfile
4145
platforms: linux/amd64
4246
push: true
4347
tags: |
44-
ghcr.io/disbotdevelopment/disbot-dashboard:${{ github.ref_name }}
48+
ghcr.io/disbotdevelopment/disbot-dashboard:${{ steps.tag.outputs.tag }}
4549
ghcr.io/disbotdevelopment/disbot-bot:v2

.github/workflows/dashboard.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ jobs:
3333
registry: ghcr.io
3434
username: ${{ github.actor }}
3535
password: ${{ secrets.GITHUB_TOKEN }}
36+
37+
- name: Get latest tag pushed
38+
id: tag
39+
uses: 32teeth/action-github-tag@v1
3640

3741
- uses: docker/build-push-action@v5
3842
with:
@@ -41,5 +45,5 @@ jobs:
4145
platforms: linux/amd64
4246
push: true
4347
tags: |
44-
ghcr.io/disbotdevelopment/disbot-dashboard:${{ github.ref_name }}
48+
ghcr.io/disbotdevelopment/disbot-dashboard:${{ steps.tag.outputs.tag }}
4549
ghcr.io/disbotdevelopment/disbot-dashboard:v2

0 commit comments

Comments
 (0)