Update Debian base images #46
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: Release image | |
on: | |
push: | |
branches: | |
- main | |
- renovate/** | |
permissions: | |
contents: read | |
packages: write | |
jobs: | |
get-versions: | |
name: Build and push image | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Extract PowerDNS version | |
id: version | |
run: | | |
echo "powerdns=$(sed -nr 's/^ARG PDNS_VERSION=(.*)$/\1/p' Dockerfile)" >> "$GITHUB_OUTPUT" | |
- name: Generate tag | |
id: tag | |
run: | | |
echo "bare=${{ steps.version.outputs.powerdns }}" >> "$GITHUB_OUTPUT" | |
echo "full=${{ steps.version.outputs.powerdns }}-$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT" | |
outputs: | |
tags: | | |
ghcr.io/${{ github.repository }}/powerdns:v${{ steps.tag.outputs.bare }} | |
ghcr.io/${{ github.repository }}/powerdns:v${{ steps.tag.outputs.full }} | |
release-image: | |
needs: [get-versions] | |
uses: txqueuelen/.github/.github/workflows/common-docker-releaser.yaml@main | |
with: | |
tags: ${{ needs.get-versions.outputs.tags }} | |
push: ${{ github.ref_name == github.event.repository.default_branch }} | |
secrets: | |
token: ${{ secrets.GITHUB_TOKEN }} |