File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9797 📦 Base: ${{ steps.meta.outputs.version }}
9898 🏷️ Tag: ${{ steps.meta.outputs.version }}-${{ steps.meta.outputs.date }}
9999 🔗 ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
100-
101- - name : Autenticar e Copiar Imagem entre Registros
102- run : |
103- # Converte o nome do usuário para minúsculas
104- GH_USER=$(echo "${{ github.actor }}" | tr '[:upper:]' '[:lower:]')
105-
106- # 1. Login no GHCR como root
107- echo "${{ secrets.GITHUB_TOKEN }}" | sudo podman login ghcr.io -u "$GH_USER" --password-stdin
108-
109- # 2. Login no Quay.io como root
110- echo "${{ secrets.QUAY_ROBOT_TOKEN }}" | sudo podman login quay.io -u "${{ secrets.QUAY_USERNAME }}" --password-stdin
111-
112- # 3. Copia a imagem utilizando o skopeo apontando para a sessão logada do sudo
113- sudo skopeo copy \
114- --authfile /root/.config/containers/auth.json \
115- docker://ghcr.io/ferlinuxdebian/bootc-gnome-minimal:latest \
116- docker://quay.io/ferlinuxdebian/bootc-gnome-minimal:latest
You can’t perform that action at this time.
0 commit comments