ci 👷 : docker image build

This commit is contained in:
HerbertHe 2024-08-10 18:54:31 +08:00
parent 834d583e3a
commit ba2044403c
1 changed files with 27 additions and 0 deletions

27
.github/workflows/docker.yml vendored Normal file
View File

@ -0,0 +1,27 @@
name: docker image
on:
push:
branches: [main]
jobs:
buildx:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- # Add support for more platforms with QEMU (optional)
# https://github.com/docker/setup-qemu-action
name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build image
run: |
docker buildx build -t herberthe0229/iptv-sources:latest --platform=linux/arm64,linux/amd64,linux/arm/v8,linux/arm/v7 . --push