'Generic Commit'
This commit is contained in:
parent
a075d45ed3
commit
57728ff87b
@ -1,4 +1,4 @@
|
|||||||
name: dropshell-build
|
name: dropshell-build multiarch
|
||||||
run-name: Build test and publish dropshell-build
|
run-name: Build test and publish dropshell-build
|
||||||
|
|
||||||
on: [push]
|
on: [push]
|
||||||
@ -39,3 +39,21 @@ jobs:
|
|||||||
SOS_WRITE_TOKEN=${{ secrets.SOS_WRITE_TOKEN }} \
|
SOS_WRITE_TOKEN=${{ secrets.SOS_WRITE_TOKEN }} \
|
||||||
DOCKER_PUSH_TOKEN=${{ secrets.DOCKER_PUSH_TOKEN }} \
|
DOCKER_PUSH_TOKEN=${{ secrets.DOCKER_PUSH_TOKEN }} \
|
||||||
./publish.sh
|
./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
|
||||||
|
@ -20,7 +20,7 @@ build_project() {
|
|||||||
-t "${tag}" \
|
-t "${tag}" \
|
||||||
-f "${SCRIPT_DIR}/Dockerfile.test-build" \
|
-f "${SCRIPT_DIR}/Dockerfile.test-build" \
|
||||||
--build-arg PROJECT="${project}" \
|
--build-arg PROJECT="${project}" \
|
||||||
--build-arg CMAKE_BUILD_TYPE="${build_type}" \
|
--build-arg CMAKE_BUILD_TYPE="${CMAKE_BUILD_TYPE}" \
|
||||||
--output "${output_dir}" \
|
--output "${output_dir}" \
|
||||||
"${SCRIPT_DIR}/tests/${project}"
|
"${SCRIPT_DIR}/tests/${project}"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user