Skip to content

Commit

Permalink
fix(CI): manually login to GHCR
Browse files Browse the repository at this point in the history
  • Loading branch information
meysam81 committed Nov 10, 2024
1 parent 4ef5e8d commit f414a89
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,12 @@ jobs:
uses: sigstore/cosign-installer@v3
- name: Setup Flux CLI
uses: fluxcd/flux2/action@main
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- name: Build source
run: tar cvzf kustomizations.tar.gz $(find . -maxdepth 1 -type d ! -name '.*' | grep -v -f .buildignore)
- name: Push to ghcr OCI registry
Expand All @@ -108,7 +114,6 @@ jobs:
--path=kustomizations.tar.gz \
--source=${{ github.server_url }}/${{ github.repository }} \
--revision="$(git tag --points-at HEAD)@sha1:$(git rev-parse HEAD)" \
--creds ${{ github.actor }}:${{ github.token }} \
--annotations="org.opencontainers.image.created=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" \
--annotations="org.opencontainers.image.description=OCI artifact containing Kustomizations" \
--annotations="org.opencontainers.image.documentation=${{ github.server_url }}/${{ github.repository }}" \
Expand Down

0 comments on commit f414a89

Please sign in to comment.