Enable login to GitHub Container Registry and set push to true in Docker build workflow

This commit is contained in:
2026-01-20 10:21:15 +01:00
parent 45d0ffe3bb
commit 7367e3e675

View File

@@ -91,12 +91,12 @@ jobs:
type=match,pattern=.*(v\d+\.\d+)\.\d+,group=1
type=match,pattern=.*(v\d+)\.\d+\.\d+,group=1
# - name: Login to GitHub Container Registry
# uses: docker/login-action@v3
# with:
# registry: ${{ inputs.registry }}
# username: ${{ inputs.registry_username }}
# password: ${{ inputs.registry_password }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ inputs.registry }}
username: ${{ inputs.registry_username }}
password: ${{ inputs.registry_password }}
- name: Build and push
uses: docker/build-push-action@v6
@@ -104,6 +104,6 @@ jobs:
context: ${{ inputs.build_context }}
file: ${{ inputs.file_path }}
platforms: ${{ inputs.platforms }}
push: false
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}