mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-11 00:11:05 +00:00
ci: dual-push Flatpak OCI bundles to Docker Hub (#2784)
Mirror Flatpak OCI bundles to Docker Hub (`docker.io/storytold/artcraft`) alongside GHCR when Docker Hub credentials (`DOCKERHUB_USERNAME` and `DOCKERHUB_TOKEN`) are present.
This commit is contained in:
1 parent
79d87b2b54
commit
56b3090924
2 files changed
+11
No files matched your search
@@ -161,6 +161,8 @@ jobs:
|
||||
- name: Build Flatpak and publish OCI
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
run: packaging/linux/flatpak.sh
|
||||
- uses: actions/upload-artifact@v7
|
||||
with:
|
||||
|
||||
@@ -38,4 +38,13 @@ if [[ -n "${SIGNING_FPR:-}" ]]; then
|
||||
skopeo copy --format oci --dest-creds "$creds" "oci:dist/release/$base-oci" "docker://$registry:stable-$arch"
|
||||
fi
|
||||
skopeo inspect --raw --creds "$creds" "docker://$registry:$version-$arch" >"dist/release/$base.oci-manifest.json"
|
||||
|
||||
if [[ -n "${DOCKERHUB_USERNAME:-}" && -n "${DOCKERHUB_TOKEN:-}" ]]; then
|
||||
dh_registry="docker.io/storytold/${GITHUB_REPOSITORY##*/}"
|
||||
dh_creds="$DOCKERHUB_USERNAME:$DOCKERHUB_TOKEN"
|
||||
skopeo copy --format oci --dest-creds "$dh_creds" "oci:dist/release/$base-oci" "docker://$dh_registry:$version-$arch"
|
||||
if [[ "$version" != *-* && ( "$GITHUB_REF" == refs/heads/release || "$GITHUB_REF" == refs/heads/artcraft-release ) ]]; then
|
||||
skopeo copy --format oci --dest-creds "$dh_creds" "oci:dist/release/$base-oci" "docker://$dh_registry:stable-$arch"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
Reference in new issue
Block a user