Skip to content

Commit

Permalink
test build tag rec-5.0.0-rc2
Browse files Browse the repository at this point in the history
  • Loading branch information
romeroalx committed May 13, 2024
1 parent 9d2b222 commit 664af41
Showing 1 changed file with 101 additions and 0 deletions.
101 changes: 101 additions & 0 deletions .github/workflows/build-docker-images-tags.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
---
name: Build images for tags

on:
push:
# tags:
# - 'auth-*'
# - 'dnsdist-*'
# - 'rec-*'

permissions:
actions: read
contents: read

jobs:
prepare:
runs-on: ubuntu-22.04
outputs:
image-name-suffix: ${{ steps.get-image-version.outputs.version }}
image-tag: ${{ steps.get-image-tag.outputs.tag }}
image-description-suffix: ${{ steps.get-image-description.outputs.description }}
steps:
# - run: echo "version=$(echo '${{ github.ref_name }}' | cut -d '-' -f 2 | awk -F'.' '{print $1$2}')" >> $GITHUB_OUTPUT
- run: echo "version=$(echo 'rec-5.0.0-rc2' | cut -d '-' -f 2 | awk -F'.' '{print $1$2}')" >> $GITHUB_OUTPUT
id: get-image-version
# - run: echo "tag=$(echo '${{ github.ref_name }}' | cut -d '-' -f 2-)" >> $GITHUB_OUTPUT
- run: echo "tag=$(echo 'rec-5.0.0-rc2' | cut -d '-' -f 2-)" >> $GITHUB_OUTPUT
id: get-image-tag
# - run: echo "description=$(echo '${{ github.ref_name }}' | cut -d '-' -f 2- | awk -F'.' '{print "v"$1"."$2".x"}')" >> $GITHUB_OUTPUT
- run: echo "description=$(echo 'rec-5.0.0-rc2' | cut -d '-' -f 2- | awk -F'.' '{print "v"$1"."$2".x"}')" >> $GITHUB_OUTPUT
id: get-image-description
- run: |
echo '${{ steps.get-image-version.outputs.version }}'
echo '${{ steps.get-image-tag.outputs.tag }}'
echo '${{ steps.get-image-description.outputs.description }}'
# call-build-image-auth:
# uses: romeroalx/pdns/.github/workflows/build-docker-images.yml@build-docker-images-dev
# if: startsWith(github.ref_name, 'auth')
# needs: prepare
# with:
# product: auth
# ref: rec-5.0.0-rc2
# # ref: ${{ github.ref_name }}
# image-name: pdns-auth-${{ needs.prepare.outputs.image-name-suffix }}
# image-tags: |-
# ${{ needs.prepare.outputs.image-tag }}
# latest
# image-description: 'PowerDNS Authoritative Server ${{ needs.prepare.outputs.image-description-suffix }}'
# platforms: linux/amd64,linux/arm64/v8
# build-args: |-
# DOCKER_FAKE_RELEASE=YES
# push: true
# secrets:
# DOCKERHUB_ORGANIZATION_NAME: ${{ secrets.DOCKERHUB_ORGANIZATION_NAME }}
# DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
# DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}

call-build-image-recursor:
uses: romeroalx/pdns/.github/workflows/build-docker-images.yml@build-docker-images-dev
# if: startsWith(github.ref_name, 'rec')
needs: prepare
with:
product: recursor
ref: rec-5.0.0-rc2
# ref: ${{ github.ref_name }}
image-name: pdns-recursor-${{ needs.prepare.outputs.image-name-suffix }}
image-tags: |-
${{ needs.prepare.outputs.image-tag }}
latest
image-description: 'PowerDNS Recursor ${{ needs.prepare.outputs.image-description-suffix }}'
platforms: linux/amd64
# platforms: linux/amd64,linux/arm64/v8
build-args: |-
DOCKER_FAKE_RELEASE=YES
push: true
secrets:
DOCKERHUB_ORGANIZATION_NAME: ${{ secrets.DOCKERHUB_ORGANIZATION_NAME }}
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}

# call-build-image-dnsdist:
# uses: romeroalx/pdns/.github/workflows/build-docker-images.yml@build-docker-images-dev
# if: startsWith(github.ref_name, 'dnsdist')
# needs: prepare
# with:
# product: dnsdist
# ref: ${{ github.ref_name }}
# image-name: dnsdist-${{ needs.prepare.outputs.image-name-suffix }}
# image-tags: |-
# ${{ needs.prepare.outputs.image-tag }}
# latest
# image-description: 'PowerDNS DNSdist ${{ needs.prepare.outputs.image-description-suffix }}'
# platforms: linux/amd64,linux/arm64/v8
# build-args: |-
# DOCKER_FAKE_RELEASE=YES
# push: true
# secrets:
# DOCKERHUB_ORGANIZATION_NAME: ${{ secrets.DOCKERHUB_ORGANIZATION_NAME }}
# DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
# DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}

0 comments on commit 664af41

Please sign in to comment.