[mirror] Command-line application for uploading a site to a git-pages server

Mirror containers to https://code.forgejo.org.

+17 -5
+17 -5
.forgejo/workflows/ci.yaml
··· 92 92 BUILDAH_ISOLATION: chroot 93 93 VER: ${{ startsWith(forge.event.ref, 'refs/tags/v') && forge.ref_name || 'latest' }} 94 94 - if: ${{ forge.repository == 'git-pages/git-pages-cli' }} 95 - name: Push container 95 + name: Push container to Codeberg 96 96 run: | 97 - buildah login --authfile=/tmp/authfile.json \ 98 - -u ${{ vars.PACKAGES_USER }} -p ${{ secrets.PACKAGES_TOKEN }} codeberg.org 99 - buildah manifest push --authfile=/tmp/authfile.json \ 100 - --all container:${VER} "docker://codeberg.org/${{ forge.repository }}:${VER/v/}" 97 + buildah login --authfile=/tmp/authfile-${FORGE}.json \ 98 + -u ${{ vars.PACKAGES_USER }} -p ${{ secrets.PACKAGES_TOKEN }} ${FORGE} 99 + buildah manifest push --authfile=/tmp/authfile-${FORGE}.json \ 100 + --all container:${VER} "docker://${FORGE}/${{ forge.repository }}:${VER/v/}" 101 101 env: 102 102 BUILDAH_ISOLATION: chroot 103 + FORGE: codeberg.org 104 + VER: ${{ startsWith(forge.event.ref, 'refs/tags/v') && forge.ref_name || 'latest' }} 105 + - if: ${{ forge.repository == 'git-pages/git-pages-cli' }} 106 + name: Push container to code.forgejo.org 107 + run: | 108 + buildah login --authfile=/tmp/authfile-${FORGE}.json \ 109 + -u ${{ vars.PACKAGES_USER }} -p ${{ secrets.CFO_PACKAGES_TOKEN }} ${FORGE} 110 + buildah manifest push --authfile=/tmp/authfile-${FORGE}.json \ 111 + --all container:${VER} "docker://${FORGE}/${{ forge.repository }}:${VER/v/}" 112 + env: 113 + BUILDAH_ISOLATION: chroot 114 + FORGE: code.forgejo.org 103 115 VER: ${{ startsWith(forge.event.ref, 'refs/tags/v') && forge.ref_name || 'latest' }}