Bump to 1fd3c00db78749fbe841af819e4f52a5f11d23461c939f4615301c6fac412900 #369
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: dnsx | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- dnsx/* | |
- .github/workflows/dnsx.yml | |
workflow_dispatch: | |
schedule: | |
- cron: "0 8 * * 1" | |
env: | |
BUILD_VERSION: "v1.2.1" | |
DOCKER_CLI_EXPERIMENTAL: enabled | |
REPOSITORY: ${{ github.actor }}/${{ github.workflow }} | |
permissions: read-all | |
jobs: | |
deploy: | |
runs-on: ubuntu-24.04 | |
permissions: | |
packages: write | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde | |
with: | |
egress-policy: block | |
disable-telemetry: true | |
allowed-endpoints: > | |
95s5acprodeus1file6.blob.core.windows.net:443 | |
api.github.com:443 | |
artifactcache.actions.githubusercontent.com:443 | |
auth.docker.io:443 | |
codeload.github.com:443 | |
dl-cdn.alpinelinux.org:443 | |
ghcr.io:443 | |
github.com:443 | |
pkg-containers.githubusercontent.com:443 | |
production.cloudflare.docker.com:443 | |
proxy.golang.org:443 | |
rdfepirv2dm1prdstr02.blob.core.windows.net:443 | |
registry-1.docker.io:443 | |
storage.googleapis.com:443 | |
sum.golang.org:443 | |
- name: Source checkout | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v2.4.0 | |
- name: Setup QEMU | |
id: qemu | |
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v1.2.0 | |
- name: Setup Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v1 | |
- name: Set Docker metadata | |
id: docker_meta | |
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v3 | |
with: | |
images: ${{ env.REPOSITORY }} | |
labels: | | |
org.opencontainers.image.version=${{ env.BUILD_VERSION }} | |
org.opencontainers.image.revision=${{ github.sha }} | |
org.opencontainers.image.title=${{ env.REPOSITORY }} | |
- name: GitHub login | |
if: ${{ github.event_name != 'pull_request' }} | |
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v1.12.0 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: DockerHub login | |
if: ${{ github.event_name != 'pull_request' }} | |
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v1.12.0 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_PASSWORD }} | |
- name: Build and push | |
uses: docker/build-push-action@4f7cdeb0f05278b464e71357394bf2c61f94138e # v2.8.0 | |
with: | |
push: ${{ github.event_name != 'pull_request' }} | |
context: ${{ github.workflow }} | |
#platforms: linux/amd64,linux/arm64,linux/ppc64le,linux/ppc64le,linux/s390x | |
#platforms: linux/amd64,linux/arm64 | |
#platforms: linux/amd64 | |
platforms: linux/amd64,linux/arm64,linux/ppc64le,linux/arm/v7,linux/arm/v6,linux/s390x | |
#platforms: linux/amd64,linux/arm64,linux/ppc64le,linux/arm/v7,linux/arm/v6,linux/s390x | |
build-args: | | |
BUILD_VERSION | |
sbom: true | |
provenance: true | |
cache-from: type=gha, scope=${{ github.workflow }} | |
cache-to: type=gha, scope=${{ github.workflow }} | |
labels: ${{ steps.docker_meta.outputs.labels }} | |
tags: | | |
docker.io/${{ env.REPOSITORY }}:${{ env.BUILD_VERSION }} | |
docker.io/${{ env.REPOSITORY }}:latest | |
ghcr.io/${{ env.REPOSITORY }}:${{ env.BUILD_VERSION }} | |
ghcr.io/${{ env.REPOSITORY }}:latest |