Skip to content

Commit 7571b80

Browse files
committed
Fix branch name checks in Docker build workflow for accurate branch identification
1 parent 2fdfcf0 commit 7571b80

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ jobs:
6363
run: |
6464
echo "Branch ref: ${{ github.ref }}"
6565
echo "Branch name: ${{ github.ref_name }}"
66-
echo "Is SSR+Docker branch: ${{ github.ref == 'refs/heads/SSR+Docker' }}"
67-
echo "Is docker branch: ${{ github.ref == 'refs/heads/docker' }}"
66+
echo "Is SSR+Docker branch: ${{ github.ref_name == 'SSR+Docker' }}"
67+
echo "Is docker branch: ${{ github.ref_name == 'docker' }}"
6868
6969
- name: Set up Docker Buildx
7070
uses: docker/setup-buildx-action@v3
@@ -78,7 +78,7 @@ jobs:
7878
- name: Set image name
7979
id: image-name
8080
run: |
81-
if [ "${{ github.ref }}" = "refs/heads/SSR+Docker" ]; then
81+
if [ "${{ github.ref_name }}" = "SSR+Docker" ]; then
8282
echo "image-name=${{ secrets.DOCKER_USERNAME }}/vrt-games-website-ssr" >> $GITHUB_OUTPUT
8383
else
8484
echo "image-name=${{ secrets.DOCKER_USERNAME }}/vrt-games-website" >> $GITHUB_OUTPUT
@@ -105,4 +105,4 @@ jobs:
105105
build-args: |
106106
VITE_GEMINI_API_KEY=${{ secrets.VITE_GEMINI_API_KEY }}
107107
cache-from: type=gha
108-
cache-to: type=gha,mode=max
108+
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)