Add network interface binding documentation #3538
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
release: | |
types: [published] | |
env: | |
platforms: "linux/386,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/amd64,linux/ppc64le,linux/riscv64,linux/s390x" | |
permissions: | |
contents: read | |
jobs: | |
build: | |
name: "Build" | |
runs-on: ubuntu-latest | |
concurrency: | |
group: ${{ github.workflow }}-build-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- name: 🛡️ Harden Runner | |
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 | |
with: | |
egress-policy: audit | |
disable-sudo: true | |
policy: build | |
- name: 🚚 Check out the repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
persist-credentials: false | |
- name: 🤖 Set up QEMU | |
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0 | |
- name: 🏗️ Set up Docker Buildx | |
uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3.8.0 | |
with: | |
version: latest | |
- name: 🔑 Log in to Docker | |
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0 | |
if: ${{ github.event_name != 'pull_request' }} | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: 🏷️ Fetch git tags for `git describe` | |
run: "git fetch --force --prune --unshallow --tags" | |
- name: 📝 Run `git describe` and save its output | |
run: echo 'GIT_DESCRIBE='`git describe --tags --always --long` >> $GITHUB_OUTPUT | |
id: git-describe | |
- name: 📝 Calculate metadata for minimal Docker images | |
uses: docker/metadata-action@369eb591f429131d6889c46b94e711f089e6ca96 # v5.6.1 | |
id: meta | |
with: | |
images: ${{ github.repository }} | |
tags: | | |
type=semver,pattern={{version}} | |
type=semver,pattern={{major}} | |
type=edge | |
annotations: | | |
io.artifacthub.package.license=Apache-2.0 WITH LLVM-exception | |
io.artifacthub.package.readme-url=https://raw.githubusercontent.com/favonia/cloudflare-ddns/main/build/SUMMARY.markdown | |
io.artifacthub.package.maintainers=[{"name":"favonia","email":"[email protected]"}] | |
env: | |
DOCKER_METADATA_ANNOTATIONS_LEVELS: index | |
- name: 🚀 Build and deploy minimal Docker images | |
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6.10.0 | |
id: build | |
with: | |
target: "minimal" | |
push: ${{ github.event_name != 'pull_request' }} | |
build-args: | | |
${{ format('GIT_DESCRIBE={0}', steps.git-describe.outputs.GIT_DESCRIBE) }} | |
platforms: ${{ env.platforms }} | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} | |
annotations: ${{ steps.meta.outputs.annotations }} | |
provenance: "mode=max" | |
- name: ✍️ Install Cosign | |
uses: sigstore/cosign-installer@dc72c7d5c4d10cd6bcb8cf6e3fd625a9e5e537da # v3.7.0 | |
- name: ✍️ Sign the minimal Docker images | |
if: ${{ github.event_name == 'release' }} | |
run: | | |
cosign sign --recursive --yes "favonia/cloudflare-ddns@${{ steps.build.outputs.digest }}" | |
- name: 📝 Calculate metadata for Docker images with alpine | |
if: ${{ github.event_name != 'release' }} | |
uses: docker/metadata-action@369eb591f429131d6889c46b94e711f089e6ca96 # v5.6.1 | |
id: meta-alpine | |
with: | |
images: ${{ github.repository }} | |
tags: | | |
type=edge,suffix=-alpine | |
annotations: | | |
io.artifacthub.package.license=Apache-2.0 WITH LLVM-exception | |
io.artifacthub.package.readme-url=https://raw.githubusercontent.com/favonia/cloudflare-ddns/main/build/SUMMARY.markdown | |
io.artifacthub.package.maintainers=[{"name":"favonia","email":"[email protected]"}] | |
env: | |
DOCKER_METADATA_ANNOTATIONS_LEVELS: index | |
- name: 🚀 Build and deploy Docker images with alpine | |
if: ${{ github.event_name != 'release' }} | |
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6.10.0 | |
id: build-alpine | |
with: | |
target: "alpine" | |
push: ${{ github.event_name != 'pull_request' }} | |
build-args: | | |
${{ format('GIT_DESCRIBE={0}', steps.git-describe.outputs.GIT_DESCRIBE) }} | |
platforms: ${{ env.platforms }} | |
tags: ${{ steps.meta-alpine.outputs.tags }} | |
labels: ${{ steps.meta-alpine.outputs.labels }} | |
annotations: ${{ steps.meta-alpine.outputs.annotations }} | |
provenance: "mode=max" |