Auto-indexing service and GraphQL API for AT Protocol Records quickslice.slices.network/
atproto gleam graphql

feat(ci): push docker images to both ghcr.io and atcr.io

Changed files
+15 -5
.github
workflows
+15 -5
.github/workflows/docker-publish.yml
··· 6 6 - 'v*' 7 7 8 8 env: 9 - REGISTRY: ghcr.io 10 - IMAGE_NAME: ${{ github.repository }} 9 + GHCR_IMAGE: ghcr.io/${{ github.repository }} 10 + ATCR_IMAGE: atcr.io/slices.network/quickslice 11 11 12 12 jobs: 13 13 build-and-push: ··· 24 24 - name: Set up Docker Buildx 25 25 uses: docker/setup-buildx-action@v3 26 26 27 - - name: Log in to Container Registry 27 + - name: Log in to GitHub Container Registry 28 28 if: github.event_name != 'pull_request' 29 29 uses: docker/login-action@v3 30 30 with: 31 - registry: ${{ env.REGISTRY }} 31 + registry: ghcr.io 32 32 username: ${{ github.actor }} 33 33 password: ${{ secrets.GITHUB_TOKEN }} 34 34 35 + - name: Log in to ATCR 36 + if: github.event_name != 'pull_request' 37 + uses: docker/login-action@v3 38 + with: 39 + registry: atcr.io 40 + username: ${{ secrets.ATCR_USERNAME }} 41 + password: ${{ secrets.ATCR_PASSWORD }} 42 + 35 43 - name: Extract metadata (tags, labels) 36 44 id: meta 37 45 uses: docker/metadata-action@v5 38 46 with: 39 - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} 47 + images: | 48 + ${{ env.GHCR_IMAGE }} 49 + ${{ env.ATCR_IMAGE }} 40 50 tags: | 41 51 type=ref,event=branch 42 52 type=ref,event=pr