Update build_docker_image.yml #4
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: build openwrt-arm64 | ||
on: | ||
workflow_dispatch: | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up QEMU | ||
id: qemu | ||
uses: docker/setup-qemu-action@v1 | ||
- name: checkout code | ||
uses: actions/checkout@v2 | ||
- name: install buildx | ||
id: buildx | ||
uses: docker/setup-buildx-action@v1 | ||
with: | ||
- name: Download Firmware | ||
run: | | ||
wget https://github.com/mslovecc/openwrt-armvirt-v22.03.6/releases/download/2024.01.26-0939/openwrt-armvirt-64-default-rootfs.tar.gz -O openwrt.tar.gz version: latest | ||
- name: login to docker hub | ||
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin | ||
- name: build the image | ||
run: | | ||
docker buildx build --push \ | ||
--tag mslovecc/openwrt-arm64:latest \ | ||
--platform linux/arm64 . |