Skip to content

Commit 3bea3f8

Browse files
committed
reuse docker workflow
1 parent e0af9cd commit 3bea3f8

File tree

4 files changed

+26
-55
lines changed

4 files changed

+26
-55
lines changed

.github/workflows/build.yml

+9-14
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,19 @@ name: Build Docker image
33
on:
44
pull_request:
55
push:
6+
branches:
7+
- main
68

79
concurrency:
810
group: build
911
cancel-in-progress: true
1012

1113
jobs:
1214
docker:
13-
runs-on: ubuntu-latest
14-
steps:
15-
- name: Set up QEMU
16-
uses: docker/setup-qemu-action@v2
17-
- name: Set up Docker Buildx
18-
uses: docker/setup-buildx-action@v2
19-
with:
20-
install: true
21-
22-
- name: Build and push
23-
uses: docker/build-push-action@v3
24-
with:
25-
platforms: linux/amd64,linux/arm64
26-
push: false
15+
name: Build Docker Image
16+
uses: cupcakearmy/workflows/.github/workflows/docker.yml@main
17+
with:
18+
name: cupcakearmy/ddns-cloudflare
19+
secrets:
20+
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
21+
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}

.github/workflows/docker.yml

+10-40
Original file line numberDiff line numberDiff line change
@@ -2,46 +2,16 @@ name: Publish Docker image
22

33
on:
44
release:
5-
types: [published]
5+
types:
6+
- published
67

78
jobs:
89
docker:
9-
runs-on: ubuntu-latest
10-
steps:
11-
- name: Set up QEMU
12-
uses: docker/setup-qemu-action@v2
13-
- name: Set up Docker Buildx
14-
uses: docker/setup-buildx-action@v2
15-
with:
16-
install: true
17-
18-
- name: Docker Labels
19-
id: meta
20-
uses: docker/metadata-action@v4
21-
with:
22-
images: |
23-
cupcakearmy/ddns-cloudflare
24-
ghcr.io/${{ github.repository }}
25-
tags: |
26-
type=semver,pattern={{version}}
27-
type=semver,pattern={{major}}.{{minor}}
28-
type=semver,pattern={{major}}
29-
30-
- name: Log in to Docker Hub
31-
uses: docker/login-action@v2
32-
with:
33-
username: ${{ secrets.DOCKER_USERNAME }}
34-
password: ${{ secrets.DOCKER_TOKEN }}
35-
- name: Log in to the Container registry
36-
uses: docker/login-action@v2
37-
with:
38-
registry: ghcr.io
39-
username: ${{ github.actor }}
40-
password: ${{ secrets.GITHUB_TOKEN }}
41-
42-
- name: Build and push
43-
uses: docker/build-push-action@v3
44-
with:
45-
platforms: linux/amd64,linux/arm64
46-
push: true
47-
tags: ${{ steps.meta.outputs.tags }}
10+
name: Build Docker Image
11+
uses: cupcakearmy/workflows/.github/workflows/docker.yml@main
12+
with:
13+
name: cupcakearmy/ddns-cloudflare
14+
push: true
15+
secrets:
16+
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
17+
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.4.1] - 2025-04-10
9+
10+
### Changed
11+
12+
- Build system
13+
814
## [1.4.1] - 2024-02-27
915

1016
### Changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "1.4.1",
2+
"version": "1.4.2",
33
"license": "MIT",
44
"type": "module",
55
"main": "./src/index.ts",

0 commit comments

Comments
 (0)