Converts repository name to lowercase which is necessary for the build to work with docker container registry.
This commit is contained in:
parent
dc8203967a
commit
fa78ffc1b7
1 changed files with 9 additions and 2 deletions
11
.github/workflows/build-and-deploy.yml
vendored
11
.github/workflows/build-and-deploy.yml
vendored
|
|
@ -19,6 +19,11 @@ jobs:
|
|||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
# --- NEW STEP TO FIX THE ERROR ---
|
||||
- name: Set repo name to lowercase
|
||||
id: repo_name
|
||||
run: echo "name=$(echo '${{ github.repository }}' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Log in to GitHub Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
|
|
@ -35,7 +40,8 @@ jobs:
|
|||
with:
|
||||
context: ./web-app
|
||||
push: true
|
||||
tags: ghcr.io/${{ github.repository }}/web-app:${{ github.sha }}
|
||||
# CHANGED: Uses the new lowercase repo name
|
||||
tags: ghcr.io/${{ steps.repo_name.outputs.name }}/web-app:${{ github.sha }}
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
|
||||
|
|
@ -44,7 +50,8 @@ jobs:
|
|||
with:
|
||||
context: ./rust-engine
|
||||
push: true
|
||||
tags: ghcr.io/${{ github.repository }}/rust-engine:${{ github.sha }}
|
||||
# CHANGED: Uses the new lowercase repo name
|
||||
tags: ghcr.io/${{ steps.repo_name.outputs.name }}/rust-engine:${{ github.sha }}
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue