Skip to content

IONOS(ci): replace Docker build-push with Kaniko in workflow - #273

Closed
bromiesTM wants to merge 1 commit into
ionos-dev-v30from
kh/dev/pipeline-improvements
Closed

IONOS(ci): replace Docker build-push with Kaniko in workflow#273
bromiesTM wants to merge 1 commit into
ionos-dev-v30from
kh/dev/pipeline-improvements

Conversation

@bromiesTM

Copy link
Copy Markdown

No description provided.

Signed-off-by: Kai Henseler <kai.henseler@strato.de>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the HiDrive “artifact → ghcr.io” GitHub Actions job to build/push the container image using Kaniko (run via docker run) instead of docker/build-push-action, aligning the workflow with a Kaniko-based build/push approach.

Changes:

  • Removed docker/login-action + docker/build-push-action usage for the ghcr.io push job.
  • Added a step that writes a Docker config.json for Kaniko registry auth and runs the Kaniko executor to build/push to the tags produced by docker/metadata-action.
  • Added cleanup of the temporary Kaniko Docker config directory.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +516 to +520
docker run --rm \
-v "${{ github.workspace }}:/workspace" \
-v "/tmp/kaniko-config:/kaniko/.docker" \
gcr.io/kaniko-project/executor:latest \
--context=/workspace \
Comment on lines +513 to +525
# Convert newline-separated tags to --destination flags
DESTINATIONS=$(echo "${{ steps.meta.outputs.tags }}" | sed 's/^/--destination=/' | tr '\n' ' ')

docker run --rm \
-v "${{ github.workspace }}:/workspace" \
-v "/tmp/kaniko-config:/kaniko/.docker" \
gcr.io/kaniko-project/executor:latest \
--context=/workspace \
--dockerfile=/workspace/Dockerfile \
${DESTINATIONS} \
--cache=true \
--cache-repo=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/cache \
--cache-ttl=24h
@bromiesTM
bromiesTM marked this pull request as draft July 8, 2026 07:58
@bromiesTM

Copy link
Copy Markdown
Author

Kaniko is no longer maintained, so we will keep using docker push action

@bromiesTM bromiesTM closed this Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants