'Generic Commit'
This commit is contained in:
parent
040e258b9e
commit
7715d69352
@ -35,10 +35,13 @@ jobs:
|
|||||||
cd tests && ./test.sh
|
cd tests && ./test.sh
|
||||||
- name: Publish as Latest
|
- name: Publish as Latest
|
||||||
run: |
|
run: |
|
||||||
cd build-base && \
|
# Only publish on main branch
|
||||||
SOS_WRITE_TOKEN=${{ secrets.SOS_WRITE_TOKEN }} \
|
if [ "$GITHUB_REF" = "refs/heads/main" ]; then
|
||||||
DOCKER_PUSH_TOKEN=${{ secrets.DOCKER_PUSH_TOKEN }} \
|
cd build-base && \
|
||||||
./publish.sh
|
SOS_WRITE_TOKEN=${{ secrets.SOS_WRITE_TOKEN }} \
|
||||||
|
DOCKER_PUSH_TOKEN=${{ secrets.DOCKER_PUSH_TOKEN }} \
|
||||||
|
./publish.sh
|
||||||
|
fi
|
||||||
create-manifest:
|
create-manifest:
|
||||||
needs: [build]
|
needs: [build]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -58,15 +61,11 @@ jobs:
|
|||||||
- name: Create and push manifest list
|
- name: Create and push manifest list
|
||||||
run: |
|
run: |
|
||||||
# Only create manifest on main branch
|
# Only create manifest on main branch
|
||||||
if [ "$GITHUB_REF" = "refs/heads/main" ]; then
|
if [ "$GITHUB_REF" = "refs/heads/main" ]; then
|
||||||
# Get the digest of each architecture-specific image
|
|
||||||
X86_64_DIGEST=$(docker manifest inspect gitea.jde.nz/public/dropshell-build-base:latest-x86_64 | jq -r '.config.digest')
|
|
||||||
AARCH64_DIGEST=$(docker manifest inspect gitea.jde.nz/public/dropshell-build-base:latest-aarch64 | jq -r '.config.digest')
|
|
||||||
|
|
||||||
# Create the manifest list using the architecture-specific digests
|
# Create the manifest list using the architecture-specific digests
|
||||||
docker manifest create gitea.jde.nz/public/dropshell-build-base:latest \
|
docker manifest create gitea.jde.nz/public/dropshell-build-base:latest \
|
||||||
--amend gitea.jde.nz/public/dropshell-build-base@$X86_64_DIGEST \
|
--amend gitea.jde.nz/public/dropshell-build-base:latest-x86_64 \
|
||||||
--amend gitea.jde.nz/public/dropshell-build-base@$AARCH64_DIGEST
|
--amend gitea.jde.nz/public/dropshell-build-base:latest-aarch64
|
||||||
|
|
||||||
# Push the manifest list
|
# Push the manifest list
|
||||||
docker manifest push gitea.jde.nz/public/dropshell-build-base:latest
|
docker manifest push gitea.jde.nz/public/dropshell-build-base:latest
|
||||||
|
Loading…
x
Reference in New Issue
Block a user