Made repo name lowercase in actions
Some checks failed
Build and Push Server Docker Image / build-server (push) Failing after 22s
Some checks failed
Build and Push Server Docker Image / build-server (push) Failing after 22s
This commit is contained in:
@@ -22,6 +22,10 @@ jobs:
|
|||||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||||
|
|
||||||
|
# 2.5 Lowercase the repository name
|
||||||
|
- name: Set lowercase repo name
|
||||||
|
run: echo "REPO_NAME_LOWER=$(echo '${{ github.event.repository.name }}' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
|
||||||
|
|
||||||
# 3. Build & push the server image, using remote cache
|
# 3. Build & push the server image, using remote cache
|
||||||
- name: Build and push server image
|
- name: Build and push server image
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
@@ -29,6 +33,7 @@ jobs:
|
|||||||
context: VirtualDDNSRouter.Server
|
context: VirtualDDNSRouter.Server
|
||||||
file: VirtualDDNSRouter.Server/Dockerfile
|
file: VirtualDDNSRouter.Server/Dockerfile
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ secrets.REGISTRY_URL }}/${{ github.repository_owner }}/${{ github.event.repository.name }}:latest-server
|
tags: ${{ secrets.REGISTRY_URL }}/${{ github.repository_owner }}/${{ env.REPO_NAME_LOWER }}:latest-server
|
||||||
cache-from: type=registry,ref=${{ secrets.REGISTRY_URL }}/${{ github.repository_owner }}/${{ github.event.repository.name }}:buildcache
|
cache-from: type=registry,ref=${{ secrets.REGISTRY_URL }}/${{ github.repository_owner }}/${{ env.REPO_NAME_LOWER }}:buildcache
|
||||||
cache-to: type=registry,ref=${{ secrets.REGISTRY_URL }}/${{ github.repository_owner }}/${{ github.event.repository.name }}:buildcache,mode=max
|
cache-to: type=registry,ref=${{ secrets.REGISTRY_URL }}/${{ github.repository_owner }}/${{ env.REPO_NAME_LOWER }}:buildcache,mode=max
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user