30 lines
702 B
YAML
30 lines
702 B
YAML
name: Docker Build and Publish
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: [ "main" ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v3
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Login to GitHub Container Registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ vars.GH_USERNAME }}
|
|
password: ${{ secrets.GH_TOKEN }}
|
|
|
|
- name: Build Test
|
|
run: docker buildx build -t ghcr.io/ryuupendragon/iperf3-test:latest --platform linux/arm64 --push .
|