Docker Image CI #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Image CI | |
on: workflow_dispatch | |
jobs: | |
build-x64: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Docker login | |
run: docker login -u meshtastic -p ${{secrets.DOCKER_TOKEN}} | |
- name: Docker setup | |
uses: docker/setup-buildx-action@v2 | |
- name: Docker build and push | |
uses: docker/build-push-action@v5 | |
with: | |
context: ./x64 | |
push: true | |
tags: meshtastic/github-action-runner:latest | |
build-arm64: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: docker/setup-qemu-action@v3 | |
name: Set up QEMU | |
- name: Docker login | |
run: docker login -u meshtastic -p ${{secrets.DOCKER_TOKEN}} | |
- name: Docker setup | |
uses: docker/setup-buildx-action@v3 | |
with: | |
platforms: linux/arm64 | |
- name: Docker build and push | |
uses: docker/build-push-action@v6 | |
with: | |
platforms: linux/arm64 | |
context: ./arm64 | |
push: true | |
tags: meshtastic/github-action-runner:latest | |
build-armhf: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: docker/setup-qemu-action@v3 | |
name: Set up QEMU | |
- name: Docker login | |
run: docker login -u meshtastic -p ${{secrets.DOCKER_TOKEN}} | |
- name: Docker setup | |
uses: docker/setup-buildx-action@v3 | |
with: | |
platforms: linux/armv6 | |
- name: build raspios | |
run: | | |
cd armhf | |
sh raspios.sh https://downloads.raspberrypi.com/raspios_lite_armhf/images/raspios_lite_armhf-2024-10-28/2024-10-22-raspios-bookworm-armhf-lite.img.xz bookworm lite 2024-10-22 armhf | |
- name: Docker build and push | |
uses: docker/build-push-action@v6 | |
with: | |
platforms: linux/armv6 | |
context: ./armhf | |
push: true | |
tags: meshtastic/github-action-runner:latest |