mirror of
https://github.com/michivonah/adguard-ddns-client.git
synced 2025-12-22 14:16:29 +01:00
34 lines
962 B
YAML
34 lines
962 B
YAML
name: Build & Publish Image to Docker Hub (MultiArch)
|
|
on:
|
|
push:
|
|
branches:
|
|
- "*"
|
|
jobs:
|
|
build:
|
|
name: push docker image to docker hub
|
|
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 Docker Hub
|
|
uses: "docker/login-action@v3"
|
|
with:
|
|
username: "${{secrets.DOCKER_USERNAME}}"
|
|
password: "${{secrets.DOCKER_TOKEN}}"
|
|
|
|
- name: Build and push image tags
|
|
uses: "docker/build-push-action@v5"
|
|
with:
|
|
context: "."
|
|
platforms: "linux/amd64,linux/arm64"
|
|
push: true
|
|
tags: |
|
|
"michivonah/adguard-ddns-client:latest"
|
|
"michivonah/adguard-ddns-client:${{ github.ref_name }}"
|