Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 6, 2026

  • Investigate CI failure
  • Fix Docker tag format to handle PR builds correctly
  • Test the fix by verifying workflow syntax
  • Report completion
Original prompt

This section details on the original issue you should resolve

<issue_title>Add a workflow to upload some very small container package</issue_title>
<issue_description>could be some alpine or other tiny image, with at least some extra layer on top -- may be just create some timestamp.txt file inside the container with a time stamp when it was built.
Workflow should have dispatch capability but otherwise trigger only when file is changed and uploaded to packages when built on master branch (not on PRs)</issue_description>

<agent_instructions>see con/tinuous#222 for what it will be used</agent_instructions>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits January 6, 2026 14:04
Co-authored-by: yarikoptic <39889+yarikoptic@users.noreply.github.com>
Co-authored-by: yarikoptic <39889+yarikoptic@users.noreply.github.com>
Copilot AI changed the title [WIP] Add workflow to upload small container package Add workflow to upload minimal Alpine container to GHCR Jan 6, 2026
Copilot AI requested a review from yarikoptic January 6, 2026 14:06
@yarikoptic
Copy link
Member

@copilot make it also build on PRs if Dockerfile changed, but not upload. This way we could test/ensure that it builds fine

Co-authored-by: yarikoptic <39889+yarikoptic@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Jan 6, 2026

@copilot make it also build on PRs if Dockerfile changed, but not upload. This way we could test/ensure that it builds fine

Done in commit 98474fa. The workflow now:

  • Builds on PRs when Dockerfile changes (without pushing to registry)
  • Only logs in and pushes to GHCR on master branch
  • Uses conditional push: ${{ github.ref == 'refs/heads/master' }} in the build step

@yarikoptic yarikoptic marked this pull request as ready for review January 6, 2026 20:14
@yarikoptic
Copy link
Member

@copilot see and address fails to CI run on this PR

Co-authored-by: yarikoptic <39889+yarikoptic@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Jan 6, 2026

@copilot see and address fails to CI run on this PR

Fixed in commit 1d02b34. The issue was that the Docker metadata action was generating an invalid tag format (-18dac0c) for PR builds because the {{branch}} placeholder was empty.

Changes:

  • Added type=ref,event=pr to generate valid PR tags (e.g., pr-10)
  • Restricted type=sha,prefix={{branch}}- to only run on the default branch
  • Added type=sha without prefix for PR builds to generate valid short SHA tags

The workflow will now build successfully on PRs without pushing to the registry.

@yarikoptic yarikoptic merged commit 37333db into master Jan 6, 2026
1 check passed
@yarikoptic yarikoptic deleted the copilot/add-upload-workflow-container branch January 6, 2026 20:30
Copilot stopped work on behalf of yarikoptic due to an error January 6, 2026 20:30
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.

Add a workflow to upload some very small container package

2 participants