-
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (33 loc) · 1.44 KB
/
release-container-arm.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: release-container-arm
on:
push:
branches-ignore:
- 'main'
tags:
- 'v*'
jobs:
build-container:
runs-on: ubuntu-latest
steps:
- name: checkout-repo
uses: actions/checkout@v3
- run: git fetch --prune --unshallow
- name: log-into-docker-hub
run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
- name: print tag
run: echo "$(git describe --tags --abbrev=0)"
- name: enable experimental cli
run: export DOCKER_CLI_EXPERIMENTAL=enabled
- name: pull binfmt
run: docker run --rm --privileged docker/binfmt:66f9012c56a8316f9244ffd7622d7c21c1f6f28d && docker pull tonistiigi/binfmt:latest
- name: uninstall all
run: docker run --privileged --rm tonistiigi/binfmt --uninstall qemu-arm &&
docker run --privileged --rm tonistiigi/binfmt --uninstall qemu-aarch64 &&
docker run --privileged --rm tonistiigi/binfmt --uninstall qemu-ppc64le &&
docker run --privileged --rm tonistiigi/binfmt --uninstall qemu-s390x
- name: install all
run: docker run --privileged --rm tonistiigi/binfmt --install all
- name: create builder
run: docker buildx create --use --name multi-arch-builder
- name: build and push
run: docker buildx build --platform linux/arm64 -t francescomecatti/doorbellcam-arm:v2.0 --push .