Skip to content

Commit a2b5c90

Browse files
committed
CI: Simplify image tagging
1 parent b29dfec commit a2b5c90

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ concurrency:
1414

1515
env:
1616
TAG_NAME: 3.3.3-alpine
17-
USER_NAME: ledermann
1817

1918
jobs:
2019
build:
@@ -50,10 +49,10 @@ jobs:
5049
platforms: linux/amd64,linux/arm64
5150
push: ${{ github.ref == 'refs/heads/main' }}
5251
tags: |
53-
ghcr.io/${{ env.USER_NAME }}/rails-base-builder:${{ env.TAG_NAME }}
54-
${{ env.USER_NAME }}/rails-base-builder:${{ env.TAG_NAME }}
55-
ghcr.io/${{ env.USER_NAME }}/rails-base-builder:latest
56-
${{ env.USER_NAME }}/rails-base-builder:latest
52+
ghcr.io/${{ github.repository_owner }}/rails-base-builder:${{ env.TAG_NAME }}
53+
${{ github.repository_owner }}/rails-base-builder:${{ env.TAG_NAME }}
54+
ghcr.io/${{ github.repository_owner }}/rails-base-builder:latest
55+
${{ github.repository_owner }}/rails-base-builder:latest
5756
cache-from: type=gha
5857
cache-to: type=gha,mode=max
5958

@@ -64,9 +63,9 @@ jobs:
6463
platforms: linux/amd64,linux/arm64
6564
push: ${{ github.ref == 'refs/heads/main' }}
6665
tags: |
67-
ghcr.io/${{ env.USER_NAME }}/rails-base-final:${{ env.TAG_NAME }}
68-
${{ env.USER_NAME }}/rails-base-final:${{ env.TAG_NAME }}
69-
ghcr.io/${{ env.USER_NAME }}/rails-base-final:latest
70-
${{ env.USER_NAME }}/rails-base-final:latest
66+
ghcr.io/${{ github.repository_owner }}/rails-base-final:${{ env.TAG_NAME }}
67+
${{ github.repository_owner }}/rails-base-final:${{ env.TAG_NAME }}
68+
ghcr.io/${{ github.repository_owner }}/rails-base-final:latest
69+
${{ github.repository_owner }}/rails-base-final:latest
7170
cache-from: type=gha
7271
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)