Skip to content

Commit f62baa9

Browse files
committed
Can upload to ghcr.io
1 parent 1150ec0 commit f62baa9

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
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

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,17 @@ qemu-aarch64-static:
1212
build: 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
)
1717
publish:
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

0 commit comments

Comments
 (0)