File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919 docker run --rm --privileged multiarch/qemu-user-static:register
2020 sudo apt install -y qemu qemu-user-static qemu-user binfmt-support
2121 echo "${{ secrets.DOCKER_HUB_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_HUB_LOGIN }}" --password-stdin
22+ echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u "${{ github.actor }}" --password-stdin
2223 - name : Build image
2324 run : make build
2425 - name : Publish image
Original file line number Diff line number Diff line change @@ -12,13 +12,17 @@ qemu-aarch64-static:
1212build : qemu-arm-static qemu-aarch64-static
1313 $(foreach arch,$(archs ) , \
1414 cat Dockerfile | sed " s/FROM docker/FROM ${arch} \/docker/g" > .Dockerfile; \
15- docker build -t femtopixel/builder:${VERSION} -$(arch ) -f .Dockerfile ${CACHE} . ; \
15+ docker build -t femtopixel/builder:${VERSION} -$(arch ) -t ghcr.io/femtopixel/builder: ${VERSION} - $( arch ) - f .Dockerfile ${CACHE} . ; \
1616 )
1717publish :
1818 docker push femtopixel/builder -a
19+ docker push ghcr.io/femtopixel/builder -a
1920 cat manifest.yml | sed " s/\$ $VERSION /${VERSION} /g" > manifest.yaml
2021 cat manifest.yaml | sed " s/\$ $FULLVERSION /${FULLVERSION} /g" > manifest2.yaml
2122 mv manifest2.yaml manifest.yaml
2223 manifest-tool push from-spec manifest.yaml
23- latest : build
24+ cat manifest.yaml | sed " s/femtopixel/ghcr.io\/femtopixel/g" > manifest2.yaml
25+ mv manifest2.yaml manifest.yaml
26+ manifest-tool push from-spec manifest.yaml
27+ latest :
2428 FULLVERSION=latest VERSION=${VERSION} make publish
You can’t perform that action at this time.
0 commit comments