Made repo name lowercase in actions
Build and Push Server Docker Image / build-server (push) Failing after 22s
Build and Push Server Docker Image / build-server (push) Failing after 22s
This commit is contained in:
1 parent
ef94d8ec95
commit
993f4fe135
1 file changed
+8
-3
@@ -22,6 +22,10 @@ jobs:
|
||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
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
|
||||
- name: Build and push server image
|
||||
uses: docker/build-push-action@v4
|
||||
@@ -29,6 +33,7 @@ jobs:
|
||||
context: VirtualDDNSRouter.Server
|
||||
file: VirtualDDNSRouter.Server/Dockerfile
|
||||
push: true
|
||||
tags: ${{ secrets.REGISTRY_URL }}/${{ github.repository_owner }}/${{ github.event.repository.name }}:latest-server
|
||||
cache-from: type=registry,ref=${{ secrets.REGISTRY_URL }}/${{ github.repository_owner }}/${{ github.event.repository.name }}:buildcache
|
||||
cache-to: type=registry,ref=${{ secrets.REGISTRY_URL }}/${{ github.repository_owner }}/${{ github.event.repository.name }}:buildcache,mode=max
|
||||
tags: ${{ secrets.REGISTRY_URL }}/${{ github.repository_owner }}/${{ env.REPO_NAME_LOWER }}:latest-server
|
||||
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 }}/${{ env.REPO_NAME_LOWER }}:buildcache,mode=max
|
||||
|
||||
Reference in new issue
Block a user