Skip to content

Commit 64ac91d

Browse files
committed
chore(deployment): fix registry directory formating on docker image tag
1 parent 02463fc commit 64ac91d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/cd.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@ jobs:
1818
password: ${{ github.token }}
1919
- name: Checkout
2020
uses: actions/checkout@v4
21+
- name: Update env
22+
run: |
23+
echo "REGISTRY_DIR=${GITHUB_REPOSITORY_OWNER@L}" >> "${GITHUB_ENV}"
2124
- name: Build
2225
working-directory: ./resources/deployment
2326
run: |
2427
docker compose -f compose.production.yml build
25-
docker tag shapez-base ${{ github.repository_owner }}/shapez-base:latest
26-
docker tag shapez-base ${{ github.repository_owner }}/shapez-base:${{ github.ref_name }}
27-
docker tag shapez-proxy ${{ github.repository_owner }}/shapez-proxy:latest
28-
docker tag shapez-proxy ${{ github.repository_owner }}/shapez-proxy:${{ github.ref_name }}
29-
- name: Update env
30-
run: |
31-
echo "REGISTRY_DIR=${GITHUB_REPOSITORY_OWNER@L}" >> "${GITHUB_ENV}"
28+
docker tag shapez-base ${{ env.REGISTRY_DIR }}/shapez-base:latest
29+
docker tag shapez-base ${{ env.REGISTRY_DIR }}/shapez-base:${{ github.ref_name }}
30+
docker tag shapez-proxy ${{ env.REGISTRY_DIR }}/shapez-proxy:latest
31+
docker tag shapez-proxy ${{ env.REGISTRY_DIR }}/shapez-proxy:${{ github.ref_name }}
3232
- name: Push
3333
run: |
3434
docker image ls

0 commit comments

Comments
 (0)