Skip to content

Merge pull request #25 from githubcdr/renovate/alpine-20240329.x #232

Merge pull request #25 from githubcdr/renovate/alpine-20240329.x

Merge pull request #25 from githubcdr/renovate/alpine-20240329.x #232

Workflow file for this run

name: 'build tagged images'
on:
push:
tags:
- 'v*.*.*'
#schedule:
# - cron: '5 4 * * *'
release:
types: [published]
workflow_dispatch:
jobs:
docker:
runs-on: ubuntu-latest
env:
IMAGE: unbound
steps:
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
# list of Docker images to use as base name for tags
images: |
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.IMAGE }}
# generate Docker tags based on the following events/attributes
tags: |
type=ref,event=branch
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v5
with:
builder: ${{ steps.buildx.outputs.name }}
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}