-
Notifications
You must be signed in to change notification settings - Fork 39
36 lines (35 loc) · 1.02 KB
/
docker-image.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: "Build Docker Image And Push"
on:
release:
types: [published]
workflow_dispatch:
inputs:
tag:
description: 'Tag'
required: true
default: 'latest'
jobs:
build-and-push-docker-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
name: "Set up QEMU"
- uses: docker/setup-buildx-action@v3
name: "Set up Docker Buildx"
- uses: docker/login-action@v3
name: "Login to Docker Hub"
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: ghcr.io
- uses: docker/build-push-action@v5
name: "Build and push"
with:
push: true
tags: ghcr.io/real-zony/ali-cloud-dynamic-dns:${{ github.event.release.name }}
file: ./AliCloudDynamicDNS/Dockerfile
context: ./AliCloudDynamicDNS
platforms: linux/amd64,linux/arm64
# build-binary:
# runs-on: ubuntu-latest