Skip to content

Conversation

Tobianas
Copy link
Contributor

@Tobianas Tobianas commented Sep 2, 2025

The previous approach did not work because:
-GHCR requires a PAT to push images, and publish-access-key which defaults to "default", is not a valid token.

-secrets.MM_PKG_WRITE was not used in login step, instead it was only used in env.

JIRA: LIGHTY-385

The previous approach did not work because:
-GHCR requires a PAT to push images, and publish-access-key
which defaults to "default", is not a valid token.

-secrets.MM_PKG_WRITE was not used in login step, instead
it was only used in env.

JIRA: LIGHTY-385
Signed-off-by: tobias.pobocik <[email protected]>
Copy link

Note

Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported.

description: Should be this docker labeled with tag latest? Enter `true` if the tag `latest` should be added for image.
default: "true"
required: true
publish-access-key:
Copy link
Collaborator

Choose a reason for hiding this comment

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

How are we going to select a tag to build?

shell: bash
run: |
echo ${{ inputs.publish-access-key}} | docker login --username ${{ github.actor }} --password-stdin ghcr.io
echo "${{ secrets.MM_PKG_WRITE }}" | docker login ghcr.io --username ${{ github.actor }} --password-stdin
Copy link
Collaborator

@ihrasko ihrasko Sep 12, 2025

Choose a reason for hiding this comment

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

What about to use https://github.com/docker/login-action?

jobs:
  build-and-push:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4

      - name: Log in to GitHub Container Registry
        uses: docker/login-action@v3
        with:
          registry: ghcr.io
          username: ${{ github.actor }}
          password: ${{ secrets.YOUR_PUBLISH_ACCESS_KEY }} # Use secrets context

      # ... your docker build and push steps follow

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