Skip to content

Initial commit

Initial commit #8

Workflow file for this run

name: copy
on:
push:
branches:
- main
jobs:
copy:
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to Docker Hub registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_READ_ONLY }}
- name: Login to github docker registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: imjasonh/[email protected]
# this will fail the first time when copying an image :/
- name: copy
uses: nick-fields/retry@v3
with:
timeout_minutes: 5
max_attempts: 2
command: ./copy.sh "ghcr.io/${{ github.repository_owner }}"