Skip to content

Login to ghcr.io

Login to ghcr.io #53

Workflow file for this run

on:
push:
jobs:
publish:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Login to ghcr.io/canonical
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Sync registry.k8s.io to ghcr.io/canonical
env:
DEST_CREDS: ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}
run: |
${GITHUB_WORKSPACE}/build-scripts/hack/sync-registry.sh