try wth github.repository_owner
This commit is contained in:
@@ -19,8 +19,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Push to Gitea Registry
|
- name: Push to Gitea Registry
|
||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||||
env:
|
|
||||||
GITEA_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
run: |
|
run: |
|
||||||
REGISTRY="${{ github.server_url }}"
|
REGISTRY="${{ github.server_url }}"
|
||||||
REGISTRY="${REGISTRY#https://}"
|
REGISTRY="${REGISTRY#https://}"
|
||||||
@@ -29,13 +27,13 @@ jobs:
|
|||||||
# Push aarch64 image
|
# Push aarch64 image
|
||||||
skopeo copy \
|
skopeo copy \
|
||||||
--insecure-policy \
|
--insecure-policy \
|
||||||
--dest-creds "${{ github.actor }}:${GITEA_TOKEN}" \
|
--dest-creds "${{ github.repository_owner }}:${{ secrets.GITEA_TOKEN }}" \
|
||||||
"docker-archive:./image-aarch64.tar.gz" \
|
"docker-archive:./image-aarch64.tar.gz" \
|
||||||
"docker://${REGISTRY}/${{ github.repository }}/node:latest-arm64"
|
"docker://${REGISTRY}/${{ github.repository }}/node:latest-arm64"
|
||||||
|
|
||||||
# Create and push manifest for arm64
|
# Create and push manifest for arm64
|
||||||
skopeo manifest create \
|
skopeo manifest create \
|
||||||
--insecure-policy \
|
--insecure-policy \
|
||||||
--dest-creds "${{ github.actor }}:${GITEA_TOKEN}" \
|
--dest-creds "${{ github.repository_owner }}:${{ secrets.GITEA_TOKEN }}" \
|
||||||
"docker://${REGISTRY}/${{ github.repository }}/node:latest" \
|
"docker://${REGISTRY}/${{ github.repository }}/node:latest" \
|
||||||
"docker://${REGISTRY}/${{ github.repository }}/node:latest-arm64"
|
"docker://${REGISTRY}/${{ github.repository }}/node:latest-arm64"
|
||||||
|
|||||||
Reference in New Issue
Block a user