mirror of
https://github.com/cupcakearmy/docker-ddns-cloudflare.git
synced 2025-09-03 20:00:40 +00:00
reuse docker workflow
This commit is contained in:
23
.github/workflows/build.yml
vendored
23
.github/workflows/build.yml
vendored
@@ -3,6 +3,8 @@ name: Build Docker image
|
|||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
push:
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: build
|
group: build
|
||||||
@@ -10,17 +12,10 @@ concurrency:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docker:
|
docker:
|
||||||
runs-on: ubuntu-latest
|
name: Build Docker Image
|
||||||
steps:
|
uses: cupcakearmy/workflows/.github/workflows/docker.yml@main
|
||||||
- name: Set up QEMU
|
with:
|
||||||
uses: docker/setup-qemu-action@v2
|
name: cupcakearmy/ddns-cloudflare
|
||||||
- name: Set up Docker Buildx
|
secrets:
|
||||||
uses: docker/setup-buildx-action@v2
|
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
||||||
with:
|
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
|
||||||
install: true
|
|
||||||
|
|
||||||
- name: Build and push
|
|
||||||
uses: docker/build-push-action@v3
|
|
||||||
with:
|
|
||||||
platforms: linux/amd64,linux/arm64
|
|
||||||
push: false
|
|
||||||
|
50
.github/workflows/docker.yml
vendored
50
.github/workflows/docker.yml
vendored
@@ -2,46 +2,16 @@ name: Publish Docker image
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
release:
|
release:
|
||||||
types: [published]
|
types:
|
||||||
|
- published
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docker:
|
docker:
|
||||||
runs-on: ubuntu-latest
|
name: Build Docker Image
|
||||||
steps:
|
uses: cupcakearmy/workflows/.github/workflows/docker.yml@main
|
||||||
- name: Set up QEMU
|
with:
|
||||||
uses: docker/setup-qemu-action@v2
|
name: cupcakearmy/ddns-cloudflare
|
||||||
- name: Set up Docker Buildx
|
push: true
|
||||||
uses: docker/setup-buildx-action@v2
|
secrets:
|
||||||
with:
|
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
||||||
install: true
|
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
|
||||||
|
|
||||||
- name: Docker Labels
|
|
||||||
id: meta
|
|
||||||
uses: docker/metadata-action@v4
|
|
||||||
with:
|
|
||||||
images: |
|
|
||||||
cupcakearmy/ddns-cloudflare
|
|
||||||
ghcr.io/${{ github.repository }}
|
|
||||||
tags: |
|
|
||||||
type=semver,pattern={{version}}
|
|
||||||
type=semver,pattern={{major}}.{{minor}}
|
|
||||||
type=semver,pattern={{major}}
|
|
||||||
|
|
||||||
- name: Log in to Docker Hub
|
|
||||||
uses: docker/login-action@v2
|
|
||||||
with:
|
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
|
||||||
password: ${{ secrets.DOCKER_TOKEN }}
|
|
||||||
- name: Log in to the Container registry
|
|
||||||
uses: docker/login-action@v2
|
|
||||||
with:
|
|
||||||
registry: ghcr.io
|
|
||||||
username: ${{ github.actor }}
|
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: Build and push
|
|
||||||
uses: docker/build-push-action@v3
|
|
||||||
with:
|
|
||||||
platforms: linux/amd64,linux/arm64
|
|
||||||
push: true
|
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
|
||||||
|
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [1.4.1] - 2025-04-10
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- Build system
|
||||||
|
|
||||||
## [1.4.1] - 2024-02-27
|
## [1.4.1] - 2024-02-27
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"version": "1.4.1",
|
"version": "1.4.2",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "./src/index.ts",
|
"main": "./src/index.ts",
|
||||||
|
Reference in New Issue
Block a user