'Generic Commit'
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
name: dropshell-build
|
||||
name: dropshell-build multiarch
|
||||
run-name: Build test and publish dropshell-build
|
||||
|
||||
on: [push]
|
||||
@ -39,3 +39,21 @@ jobs:
|
||||
SOS_WRITE_TOKEN=${{ secrets.SOS_WRITE_TOKEN }} \
|
||||
DOCKER_PUSH_TOKEN=${{ secrets.DOCKER_PUSH_TOKEN }} \
|
||||
./publish.sh
|
||||
create-manifest:
|
||||
needs: [build]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Create manifest list
|
||||
run: |
|
||||
docker manifest create gitea.jde.nz/public/dropshell-build-base:${GITHUB_SHA} \
|
||||
gitea.jde.nz/public/dropshell-build-base:${GITHUB_SHA}-x86_64 \
|
||||
gitea.jde.nz/public/dropshell-build-base:${GITHUB_SHA}-aarch64
|
||||
docker manifest push gitea.jde.nz/public/dropshell-build-base:${GITHUB_SHA}
|
||||
|
||||
# Also tag as latest if on main branch
|
||||
if [ "$GITHUB_REF" = "refs/heads/main" ]; then
|
||||
docker manifest create gitea.jde.nz/public/dropshell-build-base:latest \
|
||||
gitea.jde.nz/public/dropshell-build-base:${GITHUB_SHA}-x86_64 \
|
||||
gitea.jde.nz/public/dropshell-build-base:${GITHUB_SHA}-aarch64
|
||||
docker manifest push gitea.jde.nz/public/dropshell-build-base:latest
|
||||
fi
|
||||
|
Reference in New Issue
Block a user