diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index c2a0403b8..f2b8c26a3 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -38,13 +38,13 @@ jobs: run: | cd backend docker build -t ghcr.io/ebispot/ols4-backend:${{ github.sha }} . - docker tag ghcr.io/ebispot/ols4-backend:${{github.sha}} ghcr.io/ebispot/ols4-backend:${{ github.head_ref || github.ref }} + docker tag ghcr.io/ebispot/ols4-backend:${{github.sha}} ghcr.io/ebispot/ols4-backend:${{ github.head_ref || github.ref_name }} docker push --all-tags ghcr.io/ebispot/ols4-backend - name: Build and push ols4 frontend Docker image run: | cd frontend docker build -t ghcr.io/ebispot/ols4-frontend:${{ github.sha }} . - docker tag ghcr.io/ebispot/ols4-frontend:${{github.sha}} ghcr.io/ebispot/ols4-frontend:${{ github.head_ref || github.ref }} + docker tag ghcr.io/ebispot/ols4-frontend:${{github.sha}} ghcr.io/ebispot/ols4-frontend:${{ github.head_ref || github.ref_name }} docker push --all-tags ghcr.io/ebispot/ols4-frontend