Skip to content

Conversation

@johnsimons
Copy link
Member

@johnsimons johnsimons commented Feb 10, 2025

This is to fix
image

Replaced multiple tagging commands with a single one
@johnsimons johnsimons self-assigned this Feb 10, 2025
Invoke-Expression $cmd
Write-Output "::endgroup::"
}
$tagsCLI = $tags -replace "^", "--tag particular/servicecontrol-masstransit-connector:"
Copy link
Member Author

Choose a reason for hiding this comment

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

Replaced multiple commands with a single command

run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
uses: docker/login-action@v3
with:
registry: ghcr.io
Copy link
Member Author

Choose a reason for hiding this comment

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

Using the Github action to authenticate to Github registry

docker buildx imagetools inspect ghcr.io/particular/servicecontrol-masstransit-connector:${{ env.TAG_NAME }}
uses: docker/login-action@v3
with:
registry: ghcr.io
Copy link
Member Author

Choose a reason for hiding this comment

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

Using the Github action to authenticate to Github registry

id: date
run: echo "::set-output name=date::$(date +'+%FT%TZ')"
- name: Build and push image to GitHub container registry
uses: docker/build-push-action@v6
Copy link
Member Author

Choose a reason for hiding this comment

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

Using Github action to push and tag image.
This will use provenance

@johnsimons johnsimons force-pushed the john/native branch 3 times, most recently from 74b4a22 to 0b38e43 Compare February 10, 2025 02:04
Using build-push-action instead of script
This adds the provenance by default, see https://docs.docker.com/build/ci/github-actions/attestations/#default-provenance
This given the image a better score in dockerhub scout health score
@johnsimons johnsimons merged commit 3f9ccd4 into master Feb 14, 2025
6 checks passed
@johnsimons johnsimons deleted the john/native branch February 14, 2025 05:23
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.

3 participants