more fixes
Build and Publish Containers / build-and-push (., backend/Dockerfile, rmtpocketwatcher-backend, backend) (push) Failing after 1m40s
Build and Publish Containers / build-and-push (., backend/Dockerfile, rmtpocketwatcher-backend, backend) (push) Failing after 1m40s
This commit is contained in:
@@ -35,6 +35,18 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Normalize image coordinates
|
||||||
|
id: image
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
REGISTRY_LOWER="$(echo "${REGISTRY}" | tr '[:upper:]' '[:lower:]')"
|
||||||
|
NAMESPACE_LOWER="$(echo "${IMAGE_NAMESPACE}" | tr '[:upper:]' '[:lower:]')"
|
||||||
|
IMAGE_REF="${REGISTRY_LOWER}/${NAMESPACE_LOWER}/${{ matrix.image }}"
|
||||||
|
|
||||||
|
echo "registry=${REGISTRY_LOWER}" >> "$GITHUB_OUTPUT"
|
||||||
|
echo "namespace=${NAMESPACE_LOWER}" >> "$GITHUB_OUTPUT"
|
||||||
|
echo "image_ref=${IMAGE_REF}" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Validate registry settings
|
- name: Validate registry settings
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
@@ -49,15 +61,15 @@ jobs:
|
|||||||
- name: Login to registry
|
- name: Login to registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ${{ env.REGISTRY }}
|
registry: ${{ steps.image.outputs.registry }}
|
||||||
username: HRiggs
|
username: ${{ env.REGISTRY_USERNAME }}
|
||||||
password: ${{ env.REGISTRY_PASSWORD }}
|
password: ${{ env.REGISTRY_PASSWORD }}
|
||||||
|
|
||||||
- name: Docker meta
|
- name: Docker meta
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
with:
|
with:
|
||||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAMESPACE }}/${{ matrix.image }}
|
images: ${{ steps.image.outputs.image_ref }}
|
||||||
tags: |
|
tags: |
|
||||||
type=sha
|
type=sha
|
||||||
type=ref,event=branch
|
type=ref,event=branch
|
||||||
@@ -74,5 +86,5 @@ jobs:
|
|||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAMESPACE }}/${{ matrix.image }}:buildcache
|
cache-from: type=registry,ref=${{ steps.image.outputs.image_ref }}:buildcache
|
||||||
cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAMESPACE }}/${{ matrix.image }}:buildcache,mode=max
|
cache-to: type=registry,ref=${{ steps.image.outputs.image_ref }}:buildcache,mode=max
|
||||||
|
|||||||
Reference in New Issue
Block a user