Skip to content

Bump to alpine:3.20.0@sha256:77726ef6b57ddf65bb551896826ec38bc3e53f75… #260

Bump to alpine:3.20.0@sha256:77726ef6b57ddf65bb551896826ec38bc3e53f75…

Bump to alpine:3.20.0@sha256:77726ef6b57ddf65bb551896826ec38bc3e53f75… #260

Workflow file for this run

name: dkimpy
on:
push:
branches:
- main
paths:
- dkimpy/*
- .github/workflows/dkimpy.yml
workflow_dispatch:
schedule:
- cron: "0 8 * * 1"
env:
BUILD_VERSION: "1.1.6"
DOCKER_CLI_EXPERIMENTAL: enabled
REPOSITORY: ${{ github.actor }}/${{ github.workflow }}
permissions: read-all
jobs:
deploy:
strategy:
fail-fast: false
matrix:
distro: [ubuntu, alpine]
#distro: [ubuntu]
runs-on: ubuntu-24.04
permissions:
packages: write
steps:
- name: Harden Runner
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v1
with:
disable-sudo: true
egress-policy: block
disable-telemetry: true
allowed-endpoints:
api.github.com:443
archive.ubuntu.com:80
auth.docker.io:443
dl-cdn.alpinelinux.org:443
files.pythonhosted.org:443
ghcr.io:443
github.com:443
ports.ubuntu.com:80
production.cloudflare.docker.com:443
pypi.org:443
registry-1.docker.io:443
security.ubuntu.com:80
www.piwheels.org:443
- name: Source checkout
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v2.4.0
- name: Setup QEMU
id: qemu
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v1.2.0
- name: Setup Buildx
id: buildx
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # 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@e92390c5fb421da1463c202d546fed0ec5c39f20 # 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@e92390c5fb421da1463c202d546fed0ec5c39f20 # v1.12.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Build and push
if: ${{ matrix.distro == 'alpine' }}
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v2.8.0
with:
push: ${{ github.event_name != 'pull_request' }}
context: ${{ github.workflow }}
file: ${{ github.workflow }}/Dockerfile
#platforms: linux/amd64,linux/arm64,linux/ppc64le,linux/arm/v7
platforms: linux/amd64,linux/arm64,linux/ppc64le
#platforms: linux/amd64
build-args: BUILD_VERSION
sbom: true
provenance: true
cache-from: type=gha, scope=${{ github.workflow }}-${{ matrix.distro }}
cache-to: type=gha, scope=${{ github.workflow }}-${{ matrix.distro }}
labels: ${{ steps.docker_meta.outputs.labels }}
tags: |
docker.io/${{ env.REPOSITORY }}:${{ env.BUILD_VERSION }}
docker.io/${{ env.REPOSITORY }}:${{ env.BUILD_VERSION }}-${{ matrix.distro }}
docker.io/${{ env.REPOSITORY }}:latest
ghcr.io/${{ env.REPOSITORY }}:${{ env.BUILD_VERSION }}
ghcr.io/${{ env.REPOSITORY }}:${{ env.BUILD_VERSION }}-${{ matrix.distro }}
ghcr.io/${{ env.REPOSITORY }}:latest
- name: Build and push (${{ matrix.distro }})
if: ${{ matrix.distro == 'ubuntu' }}
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v2.8.0
with:
push: ${{ github.event_name != 'pull_request' }}
context: ${{ github.workflow }}
file: ${{ github.workflow }}/Dockerfile.${{ matrix.distro }}
#platforms: linux/amd64,linux/arm64,linux/ppc64le,linux/arm/v7
platforms: linux/amd64,linux/arm64
#platforms: linux/amd64
build-args: |
BUILD_VERSION
sbom: true
provenance: true
cache-from: type=gha, scope=${{ github.workflow }}-${{ matrix.distro }}
cache-to: type=gha, scope=${{ github.workflow }}-${{ matrix.distro }}
labels: ${{ steps.docker_meta.outputs.labels }}
tags: |
docker.io/${{ env.REPOSITORY }}:${{ env.BUILD_VERSION }}-${{ matrix.distro }}
ghcr.io/${{ env.REPOSITORY }}:${{ env.BUILD_VERSION }}-${{ matrix.distro }}