We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15fce6b commit 7ab101aCopy full SHA for 7ab101a
.github/workflows/to-ghcr.yml
@@ -0,0 +1,27 @@
1
+name: docker image to ghcr
2
+
3
+permissions:
4
+ contents: read
5
+ packages: write
6
7
+on:
8
+ workflow_dispatch:
9
+ schedule:
10
+ - cron: '0 0 * * 0'
11
12
+jobs:
13
+ Clone:
14
+ strategy:
15
+ fail-fast: false
16
+ matrix:
17
+ image:
18
+ - tonistiigi/binfmt
19
+ - moby/buildkit
20
+ runs-on: ubuntu-latest
21
+ steps:
22
+ - uses: actions/setup-go@v5
23
+ - uses: imjasonh/setup-crane@v0.4
24
+ - run: |
25
+ for tag in $(crane ls ${{ matrix.image }}); do
26
+ crane copy ${{ matrix.image }}:$tag ghcr.io/${{ github.repository_owner }}/$(echo ${{ matrix.image }} | cut -d'/' -f2 | cut -d':' -f1):$tag
27
+ done
0 commit comments