Refactor: Update CI files #101
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: ci-master-pr | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- '**' | |
pull_request: | |
branches: | |
- master | |
merge_group: | |
jobs: | |
test-nogitdiff: | |
runs-on: ubuntu-latest | |
container: | |
image: mcr.microsoft.com/powershell:lts-7.2-alpine-3.17 | |
steps: | |
- run: | | |
apk add --no-cache git | |
- uses: actions/checkout@v3 | |
- name: Ignore git permissions | |
run: | | |
git config --global --add safe.directory "$( pwd )" | |
- name: Generate variants | |
run: | | |
pwsh -Command ' | |
$ErrorActionPreference = "Stop" | |
Install-Module -Name Generate-DockerImageVariants -Force -Scope CurrentUser -Verbose | |
Generate-DockerImageVariants . | |
' | |
- name: Test - no git diff | |
run: | | |
git diff --exit-code | |
build-1-12-0: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Display system info (linux) | |
run: | | |
set -e | |
hostname | |
whoami | |
cat /etc/*release | |
lscpu | |
free | |
df -h | |
pwd | |
docker info | |
docker version | |
# See: https://github.com/docker/build-push-action/blob/v2.6.1/docs/advanced/cache.md#github-cache | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Cache Docker layers | |
uses: actions/cache@v4 | |
with: | |
path: /tmp/.buildx-cache | |
key: ${{ runner.os }}-buildx-1.12.0-${{ github.sha }} | |
restore-keys: | | |
${{ runner.os }}-buildx-1.12.0- | |
${{ runner.os }}-buildx- | |
- name: Login to Docker Hub registry | |
# Run on master and tags | |
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_REGISTRY_USER }} | |
password: ${{ secrets.DOCKERHUB_REGISTRY_PASSWORD }} | |
# This step generates the docker tags | |
- name: Prepare | |
id: prep-v1-12-0-cloudflare | |
run: | | |
set -e | |
# Get ref, i.e. <branch_name> from refs/heads/<branch_name>, or <tag-name> from refs/tags/<tag_name>. E.g. 'master' or 'v0.0.0' | |
REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) | |
# Get short commit hash E.g. 'abc0123' | |
SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) | |
# Generate docker image tags | |
# E.g. 'v0.0.0-<variant>' and 'v0.0.0-abc0123-<variant>' | |
# E.g. 'master-<variant>' and 'master-abc0123-<variant>' | |
VARIANT="v1.12.0-cloudflare" | |
REF_VARIANT="${REF}-${VARIANT}" | |
REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" | |
# Pass variables to next step | |
echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT | |
echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT | |
- name: v1.12.0-cloudflare - Build (PRs) | |
# Run only on pull requests | |
if: github.event_name == 'pull_request' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.12.0-cloudflare | |
platforms: linux/amd64 | |
push: false | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-12-0-cloudflare.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-12-0-cloudflare.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.12.0-cloudflare - Build and push (master) | |
# Run only on master | |
if: github.ref == 'refs/heads/master' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.12.0-cloudflare | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-12-0-cloudflare.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-12-0-cloudflare.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.12.0-cloudflare - Build and push (release) | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.12.0-cloudflare | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-12-0-cloudflare.outputs.VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-12-0-cloudflare.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-12-0-cloudflare.outputs.REF_SHA_VARIANT }} | |
${{ github.repository }}:latest | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
# This step generates the docker tags | |
- name: Prepare | |
id: prep-v1-12-0-cloudxns | |
run: | | |
set -e | |
# Get ref, i.e. <branch_name> from refs/heads/<branch_name>, or <tag-name> from refs/tags/<tag_name>. E.g. 'master' or 'v0.0.0' | |
REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) | |
# Get short commit hash E.g. 'abc0123' | |
SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) | |
# Generate docker image tags | |
# E.g. 'v0.0.0-<variant>' and 'v0.0.0-abc0123-<variant>' | |
# E.g. 'master-<variant>' and 'master-abc0123-<variant>' | |
VARIANT="v1.12.0-cloudxns" | |
REF_VARIANT="${REF}-${VARIANT}" | |
REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" | |
# Pass variables to next step | |
echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT | |
echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT | |
- name: v1.12.0-cloudxns - Build (PRs) | |
# Run only on pull requests | |
if: github.event_name == 'pull_request' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.12.0-cloudxns | |
platforms: linux/amd64 | |
push: false | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-12-0-cloudxns.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-12-0-cloudxns.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.12.0-cloudxns - Build and push (master) | |
# Run only on master | |
if: github.ref == 'refs/heads/master' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.12.0-cloudxns | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-12-0-cloudxns.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-12-0-cloudxns.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.12.0-cloudxns - Build and push (release) | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.12.0-cloudxns | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-12-0-cloudxns.outputs.VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-12-0-cloudxns.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-12-0-cloudxns.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
# This step generates the docker tags | |
- name: Prepare | |
id: prep-v1-12-0-digitalocean | |
run: | | |
set -e | |
# Get ref, i.e. <branch_name> from refs/heads/<branch_name>, or <tag-name> from refs/tags/<tag_name>. E.g. 'master' or 'v0.0.0' | |
REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) | |
# Get short commit hash E.g. 'abc0123' | |
SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) | |
# Generate docker image tags | |
# E.g. 'v0.0.0-<variant>' and 'v0.0.0-abc0123-<variant>' | |
# E.g. 'master-<variant>' and 'master-abc0123-<variant>' | |
VARIANT="v1.12.0-digitalocean" | |
REF_VARIANT="${REF}-${VARIANT}" | |
REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" | |
# Pass variables to next step | |
echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT | |
echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT | |
- name: v1.12.0-digitalocean - Build (PRs) | |
# Run only on pull requests | |
if: github.event_name == 'pull_request' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.12.0-digitalocean | |
platforms: linux/amd64 | |
push: false | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-12-0-digitalocean.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-12-0-digitalocean.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.12.0-digitalocean - Build and push (master) | |
# Run only on master | |
if: github.ref == 'refs/heads/master' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.12.0-digitalocean | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-12-0-digitalocean.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-12-0-digitalocean.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.12.0-digitalocean - Build and push (release) | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.12.0-digitalocean | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-12-0-digitalocean.outputs.VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-12-0-digitalocean.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-12-0-digitalocean.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
# This step generates the docker tags | |
- name: Prepare | |
id: prep-v1-12-0-dnsimple | |
run: | | |
set -e | |
# Get ref, i.e. <branch_name> from refs/heads/<branch_name>, or <tag-name> from refs/tags/<tag_name>. E.g. 'master' or 'v0.0.0' | |
REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) | |
# Get short commit hash E.g. 'abc0123' | |
SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) | |
# Generate docker image tags | |
# E.g. 'v0.0.0-<variant>' and 'v0.0.0-abc0123-<variant>' | |
# E.g. 'master-<variant>' and 'master-abc0123-<variant>' | |
VARIANT="v1.12.0-dnsimple" | |
REF_VARIANT="${REF}-${VARIANT}" | |
REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" | |
# Pass variables to next step | |
echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT | |
echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT | |
- name: v1.12.0-dnsimple - Build (PRs) | |
# Run only on pull requests | |
if: github.event_name == 'pull_request' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.12.0-dnsimple | |
platforms: linux/amd64 | |
push: false | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-12-0-dnsimple.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-12-0-dnsimple.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.12.0-dnsimple - Build and push (master) | |
# Run only on master | |
if: github.ref == 'refs/heads/master' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.12.0-dnsimple | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-12-0-dnsimple.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-12-0-dnsimple.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.12.0-dnsimple - Build and push (release) | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.12.0-dnsimple | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-12-0-dnsimple.outputs.VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-12-0-dnsimple.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-12-0-dnsimple.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
# This step generates the docker tags | |
- name: Prepare | |
id: prep-v1-12-0-dnsmadeeasy | |
run: | | |
set -e | |
# Get ref, i.e. <branch_name> from refs/heads/<branch_name>, or <tag-name> from refs/tags/<tag_name>. E.g. 'master' or 'v0.0.0' | |
REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) | |
# Get short commit hash E.g. 'abc0123' | |
SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) | |
# Generate docker image tags | |
# E.g. 'v0.0.0-<variant>' and 'v0.0.0-abc0123-<variant>' | |
# E.g. 'master-<variant>' and 'master-abc0123-<variant>' | |
VARIANT="v1.12.0-dnsmadeeasy" | |
REF_VARIANT="${REF}-${VARIANT}" | |
REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" | |
# Pass variables to next step | |
echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT | |
echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT | |
- name: v1.12.0-dnsmadeeasy - Build (PRs) | |
# Run only on pull requests | |
if: github.event_name == 'pull_request' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.12.0-dnsmadeeasy | |
platforms: linux/amd64 | |
push: false | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-12-0-dnsmadeeasy.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-12-0-dnsmadeeasy.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.12.0-dnsmadeeasy - Build and push (master) | |
# Run only on master | |
if: github.ref == 'refs/heads/master' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.12.0-dnsmadeeasy | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-12-0-dnsmadeeasy.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-12-0-dnsmadeeasy.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.12.0-dnsmadeeasy - Build and push (release) | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.12.0-dnsmadeeasy | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-12-0-dnsmadeeasy.outputs.VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-12-0-dnsmadeeasy.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-12-0-dnsmadeeasy.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
# This step generates the docker tags | |
- name: Prepare | |
id: prep-v1-12-0-google | |
run: | | |
set -e | |
# Get ref, i.e. <branch_name> from refs/heads/<branch_name>, or <tag-name> from refs/tags/<tag_name>. E.g. 'master' or 'v0.0.0' | |
REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) | |
# Get short commit hash E.g. 'abc0123' | |
SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) | |
# Generate docker image tags | |
# E.g. 'v0.0.0-<variant>' and 'v0.0.0-abc0123-<variant>' | |
# E.g. 'master-<variant>' and 'master-abc0123-<variant>' | |
VARIANT="v1.12.0-google" | |
REF_VARIANT="${REF}-${VARIANT}" | |
REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" | |
# Pass variables to next step | |
echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT | |
echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT | |
- name: v1.12.0-google - Build (PRs) | |
# Run only on pull requests | |
if: github.event_name == 'pull_request' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.12.0-google | |
platforms: linux/amd64 | |
push: false | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-12-0-google.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-12-0-google.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.12.0-google - Build and push (master) | |
# Run only on master | |
if: github.ref == 'refs/heads/master' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.12.0-google | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-12-0-google.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-12-0-google.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.12.0-google - Build and push (release) | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.12.0-google | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-12-0-google.outputs.VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-12-0-google.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-12-0-google.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
# This step generates the docker tags | |
- name: Prepare | |
id: prep-v1-12-0-linode | |
run: | | |
set -e | |
# Get ref, i.e. <branch_name> from refs/heads/<branch_name>, or <tag-name> from refs/tags/<tag_name>. E.g. 'master' or 'v0.0.0' | |
REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) | |
# Get short commit hash E.g. 'abc0123' | |
SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) | |
# Generate docker image tags | |
# E.g. 'v0.0.0-<variant>' and 'v0.0.0-abc0123-<variant>' | |
# E.g. 'master-<variant>' and 'master-abc0123-<variant>' | |
VARIANT="v1.12.0-linode" | |
REF_VARIANT="${REF}-${VARIANT}" | |
REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" | |
# Pass variables to next step | |
echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT | |
echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT | |
- name: v1.12.0-linode - Build (PRs) | |
# Run only on pull requests | |
if: github.event_name == 'pull_request' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.12.0-linode | |
platforms: linux/amd64 | |
push: false | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-12-0-linode.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-12-0-linode.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.12.0-linode - Build and push (master) | |
# Run only on master | |
if: github.ref == 'refs/heads/master' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.12.0-linode | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-12-0-linode.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-12-0-linode.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.12.0-linode - Build and push (release) | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.12.0-linode | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-12-0-linode.outputs.VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-12-0-linode.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-12-0-linode.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
# This step generates the docker tags | |
- name: Prepare | |
id: prep-v1-12-0-luadns | |
run: | | |
set -e | |
# Get ref, i.e. <branch_name> from refs/heads/<branch_name>, or <tag-name> from refs/tags/<tag_name>. E.g. 'master' or 'v0.0.0' | |
REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) | |
# Get short commit hash E.g. 'abc0123' | |
SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) | |
# Generate docker image tags | |
# E.g. 'v0.0.0-<variant>' and 'v0.0.0-abc0123-<variant>' | |
# E.g. 'master-<variant>' and 'master-abc0123-<variant>' | |
VARIANT="v1.12.0-luadns" | |
REF_VARIANT="${REF}-${VARIANT}" | |
REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" | |
# Pass variables to next step | |
echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT | |
echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT | |
- name: v1.12.0-luadns - Build (PRs) | |
# Run only on pull requests | |
if: github.event_name == 'pull_request' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.12.0-luadns | |
platforms: linux/amd64 | |
push: false | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-12-0-luadns.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-12-0-luadns.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.12.0-luadns - Build and push (master) | |
# Run only on master | |
if: github.ref == 'refs/heads/master' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.12.0-luadns | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-12-0-luadns.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-12-0-luadns.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.12.0-luadns - Build and push (release) | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.12.0-luadns | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-12-0-luadns.outputs.VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-12-0-luadns.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-12-0-luadns.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
# This step generates the docker tags | |
- name: Prepare | |
id: prep-v1-12-0-nsone | |
run: | | |
set -e | |
# Get ref, i.e. <branch_name> from refs/heads/<branch_name>, or <tag-name> from refs/tags/<tag_name>. E.g. 'master' or 'v0.0.0' | |
REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) | |
# Get short commit hash E.g. 'abc0123' | |
SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) | |
# Generate docker image tags | |
# E.g. 'v0.0.0-<variant>' and 'v0.0.0-abc0123-<variant>' | |
# E.g. 'master-<variant>' and 'master-abc0123-<variant>' | |
VARIANT="v1.12.0-nsone" | |
REF_VARIANT="${REF}-${VARIANT}" | |
REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" | |
# Pass variables to next step | |
echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT | |
echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT | |
- name: v1.12.0-nsone - Build (PRs) | |
# Run only on pull requests | |
if: github.event_name == 'pull_request' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.12.0-nsone | |
platforms: linux/amd64 | |
push: false | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-12-0-nsone.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-12-0-nsone.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.12.0-nsone - Build and push (master) | |
# Run only on master | |
if: github.ref == 'refs/heads/master' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.12.0-nsone | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-12-0-nsone.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-12-0-nsone.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.12.0-nsone - Build and push (release) | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.12.0-nsone | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-12-0-nsone.outputs.VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-12-0-nsone.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-12-0-nsone.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
# This step generates the docker tags | |
- name: Prepare | |
id: prep-v1-12-0-ovh | |
run: | | |
set -e | |
# Get ref, i.e. <branch_name> from refs/heads/<branch_name>, or <tag-name> from refs/tags/<tag_name>. E.g. 'master' or 'v0.0.0' | |
REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) | |
# Get short commit hash E.g. 'abc0123' | |
SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) | |
# Generate docker image tags | |
# E.g. 'v0.0.0-<variant>' and 'v0.0.0-abc0123-<variant>' | |
# E.g. 'master-<variant>' and 'master-abc0123-<variant>' | |
VARIANT="v1.12.0-ovh" | |
REF_VARIANT="${REF}-${VARIANT}" | |
REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" | |
# Pass variables to next step | |
echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT | |
echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT | |
- name: v1.12.0-ovh - Build (PRs) | |
# Run only on pull requests | |
if: github.event_name == 'pull_request' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.12.0-ovh | |
platforms: linux/amd64 | |
push: false | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-12-0-ovh.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-12-0-ovh.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.12.0-ovh - Build and push (master) | |
# Run only on master | |
if: github.ref == 'refs/heads/master' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.12.0-ovh | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-12-0-ovh.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-12-0-ovh.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.12.0-ovh - Build and push (release) | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.12.0-ovh | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-12-0-ovh.outputs.VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-12-0-ovh.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-12-0-ovh.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
# This step generates the docker tags | |
- name: Prepare | |
id: prep-v1-12-0-rfc2136 | |
run: | | |
set -e | |
# Get ref, i.e. <branch_name> from refs/heads/<branch_name>, or <tag-name> from refs/tags/<tag_name>. E.g. 'master' or 'v0.0.0' | |
REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) | |
# Get short commit hash E.g. 'abc0123' | |
SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) | |
# Generate docker image tags | |
# E.g. 'v0.0.0-<variant>' and 'v0.0.0-abc0123-<variant>' | |
# E.g. 'master-<variant>' and 'master-abc0123-<variant>' | |
VARIANT="v1.12.0-rfc2136" | |
REF_VARIANT="${REF}-${VARIANT}" | |
REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" | |
# Pass variables to next step | |
echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT | |
echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT | |
- name: v1.12.0-rfc2136 - Build (PRs) | |
# Run only on pull requests | |
if: github.event_name == 'pull_request' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.12.0-rfc2136 | |
platforms: linux/amd64 | |
push: false | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-12-0-rfc2136.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-12-0-rfc2136.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.12.0-rfc2136 - Build and push (master) | |
# Run only on master | |
if: github.ref == 'refs/heads/master' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.12.0-rfc2136 | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-12-0-rfc2136.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-12-0-rfc2136.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.12.0-rfc2136 - Build and push (release) | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.12.0-rfc2136 | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-12-0-rfc2136.outputs.VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-12-0-rfc2136.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-12-0-rfc2136.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
# This step generates the docker tags | |
- name: Prepare | |
id: prep-v1-12-0-route53 | |
run: | | |
set -e | |
# Get ref, i.e. <branch_name> from refs/heads/<branch_name>, or <tag-name> from refs/tags/<tag_name>. E.g. 'master' or 'v0.0.0' | |
REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) | |
# Get short commit hash E.g. 'abc0123' | |
SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) | |
# Generate docker image tags | |
# E.g. 'v0.0.0-<variant>' and 'v0.0.0-abc0123-<variant>' | |
# E.g. 'master-<variant>' and 'master-abc0123-<variant>' | |
VARIANT="v1.12.0-route53" | |
REF_VARIANT="${REF}-${VARIANT}" | |
REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" | |
# Pass variables to next step | |
echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT | |
echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT | |
- name: v1.12.0-route53 - Build (PRs) | |
# Run only on pull requests | |
if: github.event_name == 'pull_request' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.12.0-route53 | |
platforms: linux/amd64 | |
push: false | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-12-0-route53.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-12-0-route53.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.12.0-route53 - Build and push (master) | |
# Run only on master | |
if: github.ref == 'refs/heads/master' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.12.0-route53 | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-12-0-route53.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-12-0-route53.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.12.0-route53 - Build and push (release) | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.12.0-route53 | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-12-0-route53.outputs.VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-12-0-route53.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-12-0-route53.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
# Temp fix | |
# https://github.com/docker/build-push-action/issues/252 | |
# https://github.com/moby/buildkit/issues/1896 | |
- name: Move cache | |
run: | | |
rm -rf /tmp/.buildx-cache | |
mv /tmp/.buildx-cache-new /tmp/.buildx-cache | |
build-1-11-0: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Display system info (linux) | |
run: | | |
set -e | |
hostname | |
whoami | |
cat /etc/*release | |
lscpu | |
free | |
df -h | |
pwd | |
docker info | |
docker version | |
# See: https://github.com/docker/build-push-action/blob/v2.6.1/docs/advanced/cache.md#github-cache | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Cache Docker layers | |
uses: actions/cache@v4 | |
with: | |
path: /tmp/.buildx-cache | |
key: ${{ runner.os }}-buildx-1.11.0-${{ github.sha }} | |
restore-keys: | | |
${{ runner.os }}-buildx-1.11.0- | |
${{ runner.os }}-buildx- | |
- name: Login to Docker Hub registry | |
# Run on master and tags | |
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_REGISTRY_USER }} | |
password: ${{ secrets.DOCKERHUB_REGISTRY_PASSWORD }} | |
# This step generates the docker tags | |
- name: Prepare | |
id: prep-v1-11-0-cloudflare | |
run: | | |
set -e | |
# Get ref, i.e. <branch_name> from refs/heads/<branch_name>, or <tag-name> from refs/tags/<tag_name>. E.g. 'master' or 'v0.0.0' | |
REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) | |
# Get short commit hash E.g. 'abc0123' | |
SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) | |
# Generate docker image tags | |
# E.g. 'v0.0.0-<variant>' and 'v0.0.0-abc0123-<variant>' | |
# E.g. 'master-<variant>' and 'master-abc0123-<variant>' | |
VARIANT="v1.11.0-cloudflare" | |
REF_VARIANT="${REF}-${VARIANT}" | |
REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" | |
# Pass variables to next step | |
echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT | |
echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT | |
- name: v1.11.0-cloudflare - Build (PRs) | |
# Run only on pull requests | |
if: github.event_name == 'pull_request' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.11.0-cloudflare | |
platforms: linux/amd64 | |
push: false | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-11-0-cloudflare.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-11-0-cloudflare.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.11.0-cloudflare - Build and push (master) | |
# Run only on master | |
if: github.ref == 'refs/heads/master' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.11.0-cloudflare | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-11-0-cloudflare.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-11-0-cloudflare.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.11.0-cloudflare - Build and push (release) | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.11.0-cloudflare | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-11-0-cloudflare.outputs.VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-11-0-cloudflare.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-11-0-cloudflare.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
# This step generates the docker tags | |
- name: Prepare | |
id: prep-v1-11-0-cloudxns | |
run: | | |
set -e | |
# Get ref, i.e. <branch_name> from refs/heads/<branch_name>, or <tag-name> from refs/tags/<tag_name>. E.g. 'master' or 'v0.0.0' | |
REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) | |
# Get short commit hash E.g. 'abc0123' | |
SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) | |
# Generate docker image tags | |
# E.g. 'v0.0.0-<variant>' and 'v0.0.0-abc0123-<variant>' | |
# E.g. 'master-<variant>' and 'master-abc0123-<variant>' | |
VARIANT="v1.11.0-cloudxns" | |
REF_VARIANT="${REF}-${VARIANT}" | |
REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" | |
# Pass variables to next step | |
echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT | |
echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT | |
- name: v1.11.0-cloudxns - Build (PRs) | |
# Run only on pull requests | |
if: github.event_name == 'pull_request' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.11.0-cloudxns | |
platforms: linux/amd64 | |
push: false | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-11-0-cloudxns.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-11-0-cloudxns.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.11.0-cloudxns - Build and push (master) | |
# Run only on master | |
if: github.ref == 'refs/heads/master' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.11.0-cloudxns | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-11-0-cloudxns.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-11-0-cloudxns.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.11.0-cloudxns - Build and push (release) | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.11.0-cloudxns | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-11-0-cloudxns.outputs.VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-11-0-cloudxns.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-11-0-cloudxns.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
# This step generates the docker tags | |
- name: Prepare | |
id: prep-v1-11-0-digitalocean | |
run: | | |
set -e | |
# Get ref, i.e. <branch_name> from refs/heads/<branch_name>, or <tag-name> from refs/tags/<tag_name>. E.g. 'master' or 'v0.0.0' | |
REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) | |
# Get short commit hash E.g. 'abc0123' | |
SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) | |
# Generate docker image tags | |
# E.g. 'v0.0.0-<variant>' and 'v0.0.0-abc0123-<variant>' | |
# E.g. 'master-<variant>' and 'master-abc0123-<variant>' | |
VARIANT="v1.11.0-digitalocean" | |
REF_VARIANT="${REF}-${VARIANT}" | |
REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" | |
# Pass variables to next step | |
echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT | |
echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT | |
- name: v1.11.0-digitalocean - Build (PRs) | |
# Run only on pull requests | |
if: github.event_name == 'pull_request' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.11.0-digitalocean | |
platforms: linux/amd64 | |
push: false | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-11-0-digitalocean.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-11-0-digitalocean.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.11.0-digitalocean - Build and push (master) | |
# Run only on master | |
if: github.ref == 'refs/heads/master' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.11.0-digitalocean | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-11-0-digitalocean.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-11-0-digitalocean.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.11.0-digitalocean - Build and push (release) | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.11.0-digitalocean | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-11-0-digitalocean.outputs.VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-11-0-digitalocean.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-11-0-digitalocean.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
# This step generates the docker tags | |
- name: Prepare | |
id: prep-v1-11-0-dnsimple | |
run: | | |
set -e | |
# Get ref, i.e. <branch_name> from refs/heads/<branch_name>, or <tag-name> from refs/tags/<tag_name>. E.g. 'master' or 'v0.0.0' | |
REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) | |
# Get short commit hash E.g. 'abc0123' | |
SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) | |
# Generate docker image tags | |
# E.g. 'v0.0.0-<variant>' and 'v0.0.0-abc0123-<variant>' | |
# E.g. 'master-<variant>' and 'master-abc0123-<variant>' | |
VARIANT="v1.11.0-dnsimple" | |
REF_VARIANT="${REF}-${VARIANT}" | |
REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" | |
# Pass variables to next step | |
echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT | |
echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT | |
- name: v1.11.0-dnsimple - Build (PRs) | |
# Run only on pull requests | |
if: github.event_name == 'pull_request' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.11.0-dnsimple | |
platforms: linux/amd64 | |
push: false | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-11-0-dnsimple.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-11-0-dnsimple.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.11.0-dnsimple - Build and push (master) | |
# Run only on master | |
if: github.ref == 'refs/heads/master' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.11.0-dnsimple | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-11-0-dnsimple.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-11-0-dnsimple.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.11.0-dnsimple - Build and push (release) | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.11.0-dnsimple | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-11-0-dnsimple.outputs.VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-11-0-dnsimple.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-11-0-dnsimple.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
# This step generates the docker tags | |
- name: Prepare | |
id: prep-v1-11-0-dnsmadeeasy | |
run: | | |
set -e | |
# Get ref, i.e. <branch_name> from refs/heads/<branch_name>, or <tag-name> from refs/tags/<tag_name>. E.g. 'master' or 'v0.0.0' | |
REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) | |
# Get short commit hash E.g. 'abc0123' | |
SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) | |
# Generate docker image tags | |
# E.g. 'v0.0.0-<variant>' and 'v0.0.0-abc0123-<variant>' | |
# E.g. 'master-<variant>' and 'master-abc0123-<variant>' | |
VARIANT="v1.11.0-dnsmadeeasy" | |
REF_VARIANT="${REF}-${VARIANT}" | |
REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" | |
# Pass variables to next step | |
echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT | |
echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT | |
- name: v1.11.0-dnsmadeeasy - Build (PRs) | |
# Run only on pull requests | |
if: github.event_name == 'pull_request' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.11.0-dnsmadeeasy | |
platforms: linux/amd64 | |
push: false | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-11-0-dnsmadeeasy.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-11-0-dnsmadeeasy.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.11.0-dnsmadeeasy - Build and push (master) | |
# Run only on master | |
if: github.ref == 'refs/heads/master' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.11.0-dnsmadeeasy | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-11-0-dnsmadeeasy.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-11-0-dnsmadeeasy.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.11.0-dnsmadeeasy - Build and push (release) | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.11.0-dnsmadeeasy | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-11-0-dnsmadeeasy.outputs.VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-11-0-dnsmadeeasy.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-11-0-dnsmadeeasy.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
# This step generates the docker tags | |
- name: Prepare | |
id: prep-v1-11-0-google | |
run: | | |
set -e | |
# Get ref, i.e. <branch_name> from refs/heads/<branch_name>, or <tag-name> from refs/tags/<tag_name>. E.g. 'master' or 'v0.0.0' | |
REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) | |
# Get short commit hash E.g. 'abc0123' | |
SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) | |
# Generate docker image tags | |
# E.g. 'v0.0.0-<variant>' and 'v0.0.0-abc0123-<variant>' | |
# E.g. 'master-<variant>' and 'master-abc0123-<variant>' | |
VARIANT="v1.11.0-google" | |
REF_VARIANT="${REF}-${VARIANT}" | |
REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" | |
# Pass variables to next step | |
echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT | |
echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT | |
- name: v1.11.0-google - Build (PRs) | |
# Run only on pull requests | |
if: github.event_name == 'pull_request' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.11.0-google | |
platforms: linux/amd64 | |
push: false | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-11-0-google.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-11-0-google.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.11.0-google - Build and push (master) | |
# Run only on master | |
if: github.ref == 'refs/heads/master' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.11.0-google | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-11-0-google.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-11-0-google.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.11.0-google - Build and push (release) | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.11.0-google | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-11-0-google.outputs.VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-11-0-google.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-11-0-google.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
# This step generates the docker tags | |
- name: Prepare | |
id: prep-v1-11-0-linode | |
run: | | |
set -e | |
# Get ref, i.e. <branch_name> from refs/heads/<branch_name>, or <tag-name> from refs/tags/<tag_name>. E.g. 'master' or 'v0.0.0' | |
REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) | |
# Get short commit hash E.g. 'abc0123' | |
SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) | |
# Generate docker image tags | |
# E.g. 'v0.0.0-<variant>' and 'v0.0.0-abc0123-<variant>' | |
# E.g. 'master-<variant>' and 'master-abc0123-<variant>' | |
VARIANT="v1.11.0-linode" | |
REF_VARIANT="${REF}-${VARIANT}" | |
REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" | |
# Pass variables to next step | |
echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT | |
echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT | |
- name: v1.11.0-linode - Build (PRs) | |
# Run only on pull requests | |
if: github.event_name == 'pull_request' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.11.0-linode | |
platforms: linux/amd64 | |
push: false | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-11-0-linode.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-11-0-linode.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.11.0-linode - Build and push (master) | |
# Run only on master | |
if: github.ref == 'refs/heads/master' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.11.0-linode | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-11-0-linode.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-11-0-linode.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.11.0-linode - Build and push (release) | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.11.0-linode | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-11-0-linode.outputs.VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-11-0-linode.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-11-0-linode.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
# This step generates the docker tags | |
- name: Prepare | |
id: prep-v1-11-0-luadns | |
run: | | |
set -e | |
# Get ref, i.e. <branch_name> from refs/heads/<branch_name>, or <tag-name> from refs/tags/<tag_name>. E.g. 'master' or 'v0.0.0' | |
REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) | |
# Get short commit hash E.g. 'abc0123' | |
SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) | |
# Generate docker image tags | |
# E.g. 'v0.0.0-<variant>' and 'v0.0.0-abc0123-<variant>' | |
# E.g. 'master-<variant>' and 'master-abc0123-<variant>' | |
VARIANT="v1.11.0-luadns" | |
REF_VARIANT="${REF}-${VARIANT}" | |
REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" | |
# Pass variables to next step | |
echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT | |
echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT | |
- name: v1.11.0-luadns - Build (PRs) | |
# Run only on pull requests | |
if: github.event_name == 'pull_request' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.11.0-luadns | |
platforms: linux/amd64 | |
push: false | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-11-0-luadns.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-11-0-luadns.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.11.0-luadns - Build and push (master) | |
# Run only on master | |
if: github.ref == 'refs/heads/master' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.11.0-luadns | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-11-0-luadns.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-11-0-luadns.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.11.0-luadns - Build and push (release) | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.11.0-luadns | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-11-0-luadns.outputs.VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-11-0-luadns.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-11-0-luadns.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
# This step generates the docker tags | |
- name: Prepare | |
id: prep-v1-11-0-nsone | |
run: | | |
set -e | |
# Get ref, i.e. <branch_name> from refs/heads/<branch_name>, or <tag-name> from refs/tags/<tag_name>. E.g. 'master' or 'v0.0.0' | |
REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) | |
# Get short commit hash E.g. 'abc0123' | |
SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) | |
# Generate docker image tags | |
# E.g. 'v0.0.0-<variant>' and 'v0.0.0-abc0123-<variant>' | |
# E.g. 'master-<variant>' and 'master-abc0123-<variant>' | |
VARIANT="v1.11.0-nsone" | |
REF_VARIANT="${REF}-${VARIANT}" | |
REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" | |
# Pass variables to next step | |
echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT | |
echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT | |
- name: v1.11.0-nsone - Build (PRs) | |
# Run only on pull requests | |
if: github.event_name == 'pull_request' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.11.0-nsone | |
platforms: linux/amd64 | |
push: false | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-11-0-nsone.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-11-0-nsone.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.11.0-nsone - Build and push (master) | |
# Run only on master | |
if: github.ref == 'refs/heads/master' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.11.0-nsone | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-11-0-nsone.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-11-0-nsone.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.11.0-nsone - Build and push (release) | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.11.0-nsone | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-11-0-nsone.outputs.VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-11-0-nsone.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-11-0-nsone.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
# This step generates the docker tags | |
- name: Prepare | |
id: prep-v1-11-0-ovh | |
run: | | |
set -e | |
# Get ref, i.e. <branch_name> from refs/heads/<branch_name>, or <tag-name> from refs/tags/<tag_name>. E.g. 'master' or 'v0.0.0' | |
REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) | |
# Get short commit hash E.g. 'abc0123' | |
SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) | |
# Generate docker image tags | |
# E.g. 'v0.0.0-<variant>' and 'v0.0.0-abc0123-<variant>' | |
# E.g. 'master-<variant>' and 'master-abc0123-<variant>' | |
VARIANT="v1.11.0-ovh" | |
REF_VARIANT="${REF}-${VARIANT}" | |
REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" | |
# Pass variables to next step | |
echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT | |
echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT | |
- name: v1.11.0-ovh - Build (PRs) | |
# Run only on pull requests | |
if: github.event_name == 'pull_request' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.11.0-ovh | |
platforms: linux/amd64 | |
push: false | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-11-0-ovh.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-11-0-ovh.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.11.0-ovh - Build and push (master) | |
# Run only on master | |
if: github.ref == 'refs/heads/master' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.11.0-ovh | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-11-0-ovh.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-11-0-ovh.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.11.0-ovh - Build and push (release) | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.11.0-ovh | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-11-0-ovh.outputs.VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-11-0-ovh.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-11-0-ovh.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
# This step generates the docker tags | |
- name: Prepare | |
id: prep-v1-11-0-rfc2136 | |
run: | | |
set -e | |
# Get ref, i.e. <branch_name> from refs/heads/<branch_name>, or <tag-name> from refs/tags/<tag_name>. E.g. 'master' or 'v0.0.0' | |
REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) | |
# Get short commit hash E.g. 'abc0123' | |
SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) | |
# Generate docker image tags | |
# E.g. 'v0.0.0-<variant>' and 'v0.0.0-abc0123-<variant>' | |
# E.g. 'master-<variant>' and 'master-abc0123-<variant>' | |
VARIANT="v1.11.0-rfc2136" | |
REF_VARIANT="${REF}-${VARIANT}" | |
REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" | |
# Pass variables to next step | |
echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT | |
echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT | |
- name: v1.11.0-rfc2136 - Build (PRs) | |
# Run only on pull requests | |
if: github.event_name == 'pull_request' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.11.0-rfc2136 | |
platforms: linux/amd64 | |
push: false | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-11-0-rfc2136.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-11-0-rfc2136.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.11.0-rfc2136 - Build and push (master) | |
# Run only on master | |
if: github.ref == 'refs/heads/master' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.11.0-rfc2136 | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-11-0-rfc2136.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-11-0-rfc2136.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.11.0-rfc2136 - Build and push (release) | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.11.0-rfc2136 | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-11-0-rfc2136.outputs.VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-11-0-rfc2136.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-11-0-rfc2136.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
# This step generates the docker tags | |
- name: Prepare | |
id: prep-v1-11-0-route53 | |
run: | | |
set -e | |
# Get ref, i.e. <branch_name> from refs/heads/<branch_name>, or <tag-name> from refs/tags/<tag_name>. E.g. 'master' or 'v0.0.0' | |
REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) | |
# Get short commit hash E.g. 'abc0123' | |
SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) | |
# Generate docker image tags | |
# E.g. 'v0.0.0-<variant>' and 'v0.0.0-abc0123-<variant>' | |
# E.g. 'master-<variant>' and 'master-abc0123-<variant>' | |
VARIANT="v1.11.0-route53" | |
REF_VARIANT="${REF}-${VARIANT}" | |
REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" | |
# Pass variables to next step | |
echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT | |
echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT | |
- name: v1.11.0-route53 - Build (PRs) | |
# Run only on pull requests | |
if: github.event_name == 'pull_request' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.11.0-route53 | |
platforms: linux/amd64 | |
push: false | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-11-0-route53.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-11-0-route53.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.11.0-route53 - Build and push (master) | |
# Run only on master | |
if: github.ref == 'refs/heads/master' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.11.0-route53 | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-11-0-route53.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-11-0-route53.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.11.0-route53 - Build and push (release) | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.11.0-route53 | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-11-0-route53.outputs.VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-11-0-route53.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-11-0-route53.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
# Temp fix | |
# https://github.com/docker/build-push-action/issues/252 | |
# https://github.com/moby/buildkit/issues/1896 | |
- name: Move cache | |
run: | | |
rm -rf /tmp/.buildx-cache | |
mv /tmp/.buildx-cache-new /tmp/.buildx-cache | |
build-1-10-1: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Display system info (linux) | |
run: | | |
set -e | |
hostname | |
whoami | |
cat /etc/*release | |
lscpu | |
free | |
df -h | |
pwd | |
docker info | |
docker version | |
# See: https://github.com/docker/build-push-action/blob/v2.6.1/docs/advanced/cache.md#github-cache | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Cache Docker layers | |
uses: actions/cache@v4 | |
with: | |
path: /tmp/.buildx-cache | |
key: ${{ runner.os }}-buildx-1.10.1-${{ github.sha }} | |
restore-keys: | | |
${{ runner.os }}-buildx-1.10.1- | |
${{ runner.os }}-buildx- | |
- name: Login to Docker Hub registry | |
# Run on master and tags | |
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_REGISTRY_USER }} | |
password: ${{ secrets.DOCKERHUB_REGISTRY_PASSWORD }} | |
# This step generates the docker tags | |
- name: Prepare | |
id: prep-v1-10-1-cloudflare | |
run: | | |
set -e | |
# Get ref, i.e. <branch_name> from refs/heads/<branch_name>, or <tag-name> from refs/tags/<tag_name>. E.g. 'master' or 'v0.0.0' | |
REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) | |
# Get short commit hash E.g. 'abc0123' | |
SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) | |
# Generate docker image tags | |
# E.g. 'v0.0.0-<variant>' and 'v0.0.0-abc0123-<variant>' | |
# E.g. 'master-<variant>' and 'master-abc0123-<variant>' | |
VARIANT="v1.10.1-cloudflare" | |
REF_VARIANT="${REF}-${VARIANT}" | |
REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" | |
# Pass variables to next step | |
echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT | |
echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT | |
- name: v1.10.1-cloudflare - Build (PRs) | |
# Run only on pull requests | |
if: github.event_name == 'pull_request' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.10.1-cloudflare | |
platforms: linux/amd64 | |
push: false | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-10-1-cloudflare.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-10-1-cloudflare.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.10.1-cloudflare - Build and push (master) | |
# Run only on master | |
if: github.ref == 'refs/heads/master' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.10.1-cloudflare | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-10-1-cloudflare.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-10-1-cloudflare.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.10.1-cloudflare - Build and push (release) | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.10.1-cloudflare | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-10-1-cloudflare.outputs.VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-10-1-cloudflare.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-10-1-cloudflare.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
# This step generates the docker tags | |
- name: Prepare | |
id: prep-v1-10-1-cloudxns | |
run: | | |
set -e | |
# Get ref, i.e. <branch_name> from refs/heads/<branch_name>, or <tag-name> from refs/tags/<tag_name>. E.g. 'master' or 'v0.0.0' | |
REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) | |
# Get short commit hash E.g. 'abc0123' | |
SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) | |
# Generate docker image tags | |
# E.g. 'v0.0.0-<variant>' and 'v0.0.0-abc0123-<variant>' | |
# E.g. 'master-<variant>' and 'master-abc0123-<variant>' | |
VARIANT="v1.10.1-cloudxns" | |
REF_VARIANT="${REF}-${VARIANT}" | |
REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" | |
# Pass variables to next step | |
echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT | |
echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT | |
- name: v1.10.1-cloudxns - Build (PRs) | |
# Run only on pull requests | |
if: github.event_name == 'pull_request' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.10.1-cloudxns | |
platforms: linux/amd64 | |
push: false | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-10-1-cloudxns.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-10-1-cloudxns.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.10.1-cloudxns - Build and push (master) | |
# Run only on master | |
if: github.ref == 'refs/heads/master' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.10.1-cloudxns | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-10-1-cloudxns.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-10-1-cloudxns.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.10.1-cloudxns - Build and push (release) | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.10.1-cloudxns | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-10-1-cloudxns.outputs.VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-10-1-cloudxns.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-10-1-cloudxns.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
# This step generates the docker tags | |
- name: Prepare | |
id: prep-v1-10-1-digitalocean | |
run: | | |
set -e | |
# Get ref, i.e. <branch_name> from refs/heads/<branch_name>, or <tag-name> from refs/tags/<tag_name>. E.g. 'master' or 'v0.0.0' | |
REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) | |
# Get short commit hash E.g. 'abc0123' | |
SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) | |
# Generate docker image tags | |
# E.g. 'v0.0.0-<variant>' and 'v0.0.0-abc0123-<variant>' | |
# E.g. 'master-<variant>' and 'master-abc0123-<variant>' | |
VARIANT="v1.10.1-digitalocean" | |
REF_VARIANT="${REF}-${VARIANT}" | |
REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" | |
# Pass variables to next step | |
echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT | |
echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT | |
- name: v1.10.1-digitalocean - Build (PRs) | |
# Run only on pull requests | |
if: github.event_name == 'pull_request' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.10.1-digitalocean | |
platforms: linux/amd64 | |
push: false | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-10-1-digitalocean.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-10-1-digitalocean.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.10.1-digitalocean - Build and push (master) | |
# Run only on master | |
if: github.ref == 'refs/heads/master' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.10.1-digitalocean | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-10-1-digitalocean.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-10-1-digitalocean.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.10.1-digitalocean - Build and push (release) | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.10.1-digitalocean | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-10-1-digitalocean.outputs.VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-10-1-digitalocean.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-10-1-digitalocean.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
# This step generates the docker tags | |
- name: Prepare | |
id: prep-v1-10-1-dnsimple | |
run: | | |
set -e | |
# Get ref, i.e. <branch_name> from refs/heads/<branch_name>, or <tag-name> from refs/tags/<tag_name>. E.g. 'master' or 'v0.0.0' | |
REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) | |
# Get short commit hash E.g. 'abc0123' | |
SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) | |
# Generate docker image tags | |
# E.g. 'v0.0.0-<variant>' and 'v0.0.0-abc0123-<variant>' | |
# E.g. 'master-<variant>' and 'master-abc0123-<variant>' | |
VARIANT="v1.10.1-dnsimple" | |
REF_VARIANT="${REF}-${VARIANT}" | |
REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" | |
# Pass variables to next step | |
echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT | |
echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT | |
- name: v1.10.1-dnsimple - Build (PRs) | |
# Run only on pull requests | |
if: github.event_name == 'pull_request' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.10.1-dnsimple | |
platforms: linux/amd64 | |
push: false | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-10-1-dnsimple.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-10-1-dnsimple.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.10.1-dnsimple - Build and push (master) | |
# Run only on master | |
if: github.ref == 'refs/heads/master' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.10.1-dnsimple | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-10-1-dnsimple.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-10-1-dnsimple.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.10.1-dnsimple - Build and push (release) | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.10.1-dnsimple | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-10-1-dnsimple.outputs.VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-10-1-dnsimple.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-10-1-dnsimple.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
# This step generates the docker tags | |
- name: Prepare | |
id: prep-v1-10-1-dnsmadeeasy | |
run: | | |
set -e | |
# Get ref, i.e. <branch_name> from refs/heads/<branch_name>, or <tag-name> from refs/tags/<tag_name>. E.g. 'master' or 'v0.0.0' | |
REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) | |
# Get short commit hash E.g. 'abc0123' | |
SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) | |
# Generate docker image tags | |
# E.g. 'v0.0.0-<variant>' and 'v0.0.0-abc0123-<variant>' | |
# E.g. 'master-<variant>' and 'master-abc0123-<variant>' | |
VARIANT="v1.10.1-dnsmadeeasy" | |
REF_VARIANT="${REF}-${VARIANT}" | |
REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" | |
# Pass variables to next step | |
echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT | |
echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT | |
- name: v1.10.1-dnsmadeeasy - Build (PRs) | |
# Run only on pull requests | |
if: github.event_name == 'pull_request' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.10.1-dnsmadeeasy | |
platforms: linux/amd64 | |
push: false | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-10-1-dnsmadeeasy.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-10-1-dnsmadeeasy.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.10.1-dnsmadeeasy - Build and push (master) | |
# Run only on master | |
if: github.ref == 'refs/heads/master' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.10.1-dnsmadeeasy | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-10-1-dnsmadeeasy.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-10-1-dnsmadeeasy.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.10.1-dnsmadeeasy - Build and push (release) | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.10.1-dnsmadeeasy | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-10-1-dnsmadeeasy.outputs.VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-10-1-dnsmadeeasy.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-10-1-dnsmadeeasy.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
# This step generates the docker tags | |
- name: Prepare | |
id: prep-v1-10-1-google | |
run: | | |
set -e | |
# Get ref, i.e. <branch_name> from refs/heads/<branch_name>, or <tag-name> from refs/tags/<tag_name>. E.g. 'master' or 'v0.0.0' | |
REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) | |
# Get short commit hash E.g. 'abc0123' | |
SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) | |
# Generate docker image tags | |
# E.g. 'v0.0.0-<variant>' and 'v0.0.0-abc0123-<variant>' | |
# E.g. 'master-<variant>' and 'master-abc0123-<variant>' | |
VARIANT="v1.10.1-google" | |
REF_VARIANT="${REF}-${VARIANT}" | |
REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" | |
# Pass variables to next step | |
echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT | |
echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT | |
- name: v1.10.1-google - Build (PRs) | |
# Run only on pull requests | |
if: github.event_name == 'pull_request' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.10.1-google | |
platforms: linux/amd64 | |
push: false | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-10-1-google.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-10-1-google.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.10.1-google - Build and push (master) | |
# Run only on master | |
if: github.ref == 'refs/heads/master' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.10.1-google | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-10-1-google.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-10-1-google.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.10.1-google - Build and push (release) | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.10.1-google | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-10-1-google.outputs.VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-10-1-google.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-10-1-google.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
# This step generates the docker tags | |
- name: Prepare | |
id: prep-v1-10-1-linode | |
run: | | |
set -e | |
# Get ref, i.e. <branch_name> from refs/heads/<branch_name>, or <tag-name> from refs/tags/<tag_name>. E.g. 'master' or 'v0.0.0' | |
REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) | |
# Get short commit hash E.g. 'abc0123' | |
SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) | |
# Generate docker image tags | |
# E.g. 'v0.0.0-<variant>' and 'v0.0.0-abc0123-<variant>' | |
# E.g. 'master-<variant>' and 'master-abc0123-<variant>' | |
VARIANT="v1.10.1-linode" | |
REF_VARIANT="${REF}-${VARIANT}" | |
REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" | |
# Pass variables to next step | |
echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT | |
echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT | |
- name: v1.10.1-linode - Build (PRs) | |
# Run only on pull requests | |
if: github.event_name == 'pull_request' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.10.1-linode | |
platforms: linux/amd64 | |
push: false | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-10-1-linode.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-10-1-linode.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.10.1-linode - Build and push (master) | |
# Run only on master | |
if: github.ref == 'refs/heads/master' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.10.1-linode | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-10-1-linode.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-10-1-linode.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.10.1-linode - Build and push (release) | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.10.1-linode | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-10-1-linode.outputs.VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-10-1-linode.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-10-1-linode.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
# This step generates the docker tags | |
- name: Prepare | |
id: prep-v1-10-1-luadns | |
run: | | |
set -e | |
# Get ref, i.e. <branch_name> from refs/heads/<branch_name>, or <tag-name> from refs/tags/<tag_name>. E.g. 'master' or 'v0.0.0' | |
REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) | |
# Get short commit hash E.g. 'abc0123' | |
SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) | |
# Generate docker image tags | |
# E.g. 'v0.0.0-<variant>' and 'v0.0.0-abc0123-<variant>' | |
# E.g. 'master-<variant>' and 'master-abc0123-<variant>' | |
VARIANT="v1.10.1-luadns" | |
REF_VARIANT="${REF}-${VARIANT}" | |
REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" | |
# Pass variables to next step | |
echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT | |
echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT | |
- name: v1.10.1-luadns - Build (PRs) | |
# Run only on pull requests | |
if: github.event_name == 'pull_request' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.10.1-luadns | |
platforms: linux/amd64 | |
push: false | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-10-1-luadns.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-10-1-luadns.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.10.1-luadns - Build and push (master) | |
# Run only on master | |
if: github.ref == 'refs/heads/master' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.10.1-luadns | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-10-1-luadns.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-10-1-luadns.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.10.1-luadns - Build and push (release) | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.10.1-luadns | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-10-1-luadns.outputs.VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-10-1-luadns.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-10-1-luadns.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
# This step generates the docker tags | |
- name: Prepare | |
id: prep-v1-10-1-nsone | |
run: | | |
set -e | |
# Get ref, i.e. <branch_name> from refs/heads/<branch_name>, or <tag-name> from refs/tags/<tag_name>. E.g. 'master' or 'v0.0.0' | |
REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) | |
# Get short commit hash E.g. 'abc0123' | |
SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) | |
# Generate docker image tags | |
# E.g. 'v0.0.0-<variant>' and 'v0.0.0-abc0123-<variant>' | |
# E.g. 'master-<variant>' and 'master-abc0123-<variant>' | |
VARIANT="v1.10.1-nsone" | |
REF_VARIANT="${REF}-${VARIANT}" | |
REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" | |
# Pass variables to next step | |
echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT | |
echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT | |
- name: v1.10.1-nsone - Build (PRs) | |
# Run only on pull requests | |
if: github.event_name == 'pull_request' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.10.1-nsone | |
platforms: linux/amd64 | |
push: false | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-10-1-nsone.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-10-1-nsone.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.10.1-nsone - Build and push (master) | |
# Run only on master | |
if: github.ref == 'refs/heads/master' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.10.1-nsone | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-10-1-nsone.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-10-1-nsone.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.10.1-nsone - Build and push (release) | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.10.1-nsone | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-10-1-nsone.outputs.VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-10-1-nsone.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-10-1-nsone.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
# This step generates the docker tags | |
- name: Prepare | |
id: prep-v1-10-1-ovh | |
run: | | |
set -e | |
# Get ref, i.e. <branch_name> from refs/heads/<branch_name>, or <tag-name> from refs/tags/<tag_name>. E.g. 'master' or 'v0.0.0' | |
REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) | |
# Get short commit hash E.g. 'abc0123' | |
SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) | |
# Generate docker image tags | |
# E.g. 'v0.0.0-<variant>' and 'v0.0.0-abc0123-<variant>' | |
# E.g. 'master-<variant>' and 'master-abc0123-<variant>' | |
VARIANT="v1.10.1-ovh" | |
REF_VARIANT="${REF}-${VARIANT}" | |
REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" | |
# Pass variables to next step | |
echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT | |
echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT | |
- name: v1.10.1-ovh - Build (PRs) | |
# Run only on pull requests | |
if: github.event_name == 'pull_request' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.10.1-ovh | |
platforms: linux/amd64 | |
push: false | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-10-1-ovh.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-10-1-ovh.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.10.1-ovh - Build and push (master) | |
# Run only on master | |
if: github.ref == 'refs/heads/master' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.10.1-ovh | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-10-1-ovh.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-10-1-ovh.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.10.1-ovh - Build and push (release) | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.10.1-ovh | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-10-1-ovh.outputs.VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-10-1-ovh.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-10-1-ovh.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
# This step generates the docker tags | |
- name: Prepare | |
id: prep-v1-10-1-rfc2136 | |
run: | | |
set -e | |
# Get ref, i.e. <branch_name> from refs/heads/<branch_name>, or <tag-name> from refs/tags/<tag_name>. E.g. 'master' or 'v0.0.0' | |
REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) | |
# Get short commit hash E.g. 'abc0123' | |
SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) | |
# Generate docker image tags | |
# E.g. 'v0.0.0-<variant>' and 'v0.0.0-abc0123-<variant>' | |
# E.g. 'master-<variant>' and 'master-abc0123-<variant>' | |
VARIANT="v1.10.1-rfc2136" | |
REF_VARIANT="${REF}-${VARIANT}" | |
REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" | |
# Pass variables to next step | |
echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT | |
echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT | |
- name: v1.10.1-rfc2136 - Build (PRs) | |
# Run only on pull requests | |
if: github.event_name == 'pull_request' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.10.1-rfc2136 | |
platforms: linux/amd64 | |
push: false | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-10-1-rfc2136.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-10-1-rfc2136.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.10.1-rfc2136 - Build and push (master) | |
# Run only on master | |
if: github.ref == 'refs/heads/master' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.10.1-rfc2136 | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-10-1-rfc2136.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-10-1-rfc2136.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.10.1-rfc2136 - Build and push (release) | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.10.1-rfc2136 | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-10-1-rfc2136.outputs.VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-10-1-rfc2136.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-10-1-rfc2136.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
# This step generates the docker tags | |
- name: Prepare | |
id: prep-v1-10-1-route53 | |
run: | | |
set -e | |
# Get ref, i.e. <branch_name> from refs/heads/<branch_name>, or <tag-name> from refs/tags/<tag_name>. E.g. 'master' or 'v0.0.0' | |
REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) | |
# Get short commit hash E.g. 'abc0123' | |
SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) | |
# Generate docker image tags | |
# E.g. 'v0.0.0-<variant>' and 'v0.0.0-abc0123-<variant>' | |
# E.g. 'master-<variant>' and 'master-abc0123-<variant>' | |
VARIANT="v1.10.1-route53" | |
REF_VARIANT="${REF}-${VARIANT}" | |
REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" | |
# Pass variables to next step | |
echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT | |
echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT | |
- name: v1.10.1-route53 - Build (PRs) | |
# Run only on pull requests | |
if: github.event_name == 'pull_request' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.10.1-route53 | |
platforms: linux/amd64 | |
push: false | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-10-1-route53.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-10-1-route53.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.10.1-route53 - Build and push (master) | |
# Run only on master | |
if: github.ref == 'refs/heads/master' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.10.1-route53 | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-10-1-route53.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-10-1-route53.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.10.1-route53 - Build and push (release) | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.10.1-route53 | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-10-1-route53.outputs.VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-10-1-route53.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-10-1-route53.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
# Temp fix | |
# https://github.com/docker/build-push-action/issues/252 | |
# https://github.com/moby/buildkit/issues/1896 | |
- name: Move cache | |
run: | | |
rm -rf /tmp/.buildx-cache | |
mv /tmp/.buildx-cache-new /tmp/.buildx-cache | |
build-1-9-0: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Display system info (linux) | |
run: | | |
set -e | |
hostname | |
whoami | |
cat /etc/*release | |
lscpu | |
free | |
df -h | |
pwd | |
docker info | |
docker version | |
# See: https://github.com/docker/build-push-action/blob/v2.6.1/docs/advanced/cache.md#github-cache | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Cache Docker layers | |
uses: actions/cache@v4 | |
with: | |
path: /tmp/.buildx-cache | |
key: ${{ runner.os }}-buildx-1.9.0-${{ github.sha }} | |
restore-keys: | | |
${{ runner.os }}-buildx-1.9.0- | |
${{ runner.os }}-buildx- | |
- name: Login to Docker Hub registry | |
# Run on master and tags | |
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_REGISTRY_USER }} | |
password: ${{ secrets.DOCKERHUB_REGISTRY_PASSWORD }} | |
# This step generates the docker tags | |
- name: Prepare | |
id: prep-v1-9-0-cloudflare | |
run: | | |
set -e | |
# Get ref, i.e. <branch_name> from refs/heads/<branch_name>, or <tag-name> from refs/tags/<tag_name>. E.g. 'master' or 'v0.0.0' | |
REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) | |
# Get short commit hash E.g. 'abc0123' | |
SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) | |
# Generate docker image tags | |
# E.g. 'v0.0.0-<variant>' and 'v0.0.0-abc0123-<variant>' | |
# E.g. 'master-<variant>' and 'master-abc0123-<variant>' | |
VARIANT="v1.9.0-cloudflare" | |
REF_VARIANT="${REF}-${VARIANT}" | |
REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" | |
# Pass variables to next step | |
echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT | |
echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT | |
- name: v1.9.0-cloudflare - Build (PRs) | |
# Run only on pull requests | |
if: github.event_name == 'pull_request' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.9.0-cloudflare | |
platforms: linux/amd64 | |
push: false | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-9-0-cloudflare.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-9-0-cloudflare.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.9.0-cloudflare - Build and push (master) | |
# Run only on master | |
if: github.ref == 'refs/heads/master' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.9.0-cloudflare | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-9-0-cloudflare.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-9-0-cloudflare.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.9.0-cloudflare - Build and push (release) | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.9.0-cloudflare | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-9-0-cloudflare.outputs.VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-9-0-cloudflare.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-9-0-cloudflare.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
# This step generates the docker tags | |
- name: Prepare | |
id: prep-v1-9-0-cloudxns | |
run: | | |
set -e | |
# Get ref, i.e. <branch_name> from refs/heads/<branch_name>, or <tag-name> from refs/tags/<tag_name>. E.g. 'master' or 'v0.0.0' | |
REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) | |
# Get short commit hash E.g. 'abc0123' | |
SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) | |
# Generate docker image tags | |
# E.g. 'v0.0.0-<variant>' and 'v0.0.0-abc0123-<variant>' | |
# E.g. 'master-<variant>' and 'master-abc0123-<variant>' | |
VARIANT="v1.9.0-cloudxns" | |
REF_VARIANT="${REF}-${VARIANT}" | |
REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" | |
# Pass variables to next step | |
echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT | |
echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT | |
- name: v1.9.0-cloudxns - Build (PRs) | |
# Run only on pull requests | |
if: github.event_name == 'pull_request' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.9.0-cloudxns | |
platforms: linux/amd64 | |
push: false | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-9-0-cloudxns.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-9-0-cloudxns.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.9.0-cloudxns - Build and push (master) | |
# Run only on master | |
if: github.ref == 'refs/heads/master' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.9.0-cloudxns | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-9-0-cloudxns.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-9-0-cloudxns.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.9.0-cloudxns - Build and push (release) | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.9.0-cloudxns | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-9-0-cloudxns.outputs.VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-9-0-cloudxns.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-9-0-cloudxns.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
# This step generates the docker tags | |
- name: Prepare | |
id: prep-v1-9-0-digitalocean | |
run: | | |
set -e | |
# Get ref, i.e. <branch_name> from refs/heads/<branch_name>, or <tag-name> from refs/tags/<tag_name>. E.g. 'master' or 'v0.0.0' | |
REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) | |
# Get short commit hash E.g. 'abc0123' | |
SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) | |
# Generate docker image tags | |
# E.g. 'v0.0.0-<variant>' and 'v0.0.0-abc0123-<variant>' | |
# E.g. 'master-<variant>' and 'master-abc0123-<variant>' | |
VARIANT="v1.9.0-digitalocean" | |
REF_VARIANT="${REF}-${VARIANT}" | |
REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" | |
# Pass variables to next step | |
echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT | |
echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT | |
- name: v1.9.0-digitalocean - Build (PRs) | |
# Run only on pull requests | |
if: github.event_name == 'pull_request' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.9.0-digitalocean | |
platforms: linux/amd64 | |
push: false | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-9-0-digitalocean.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-9-0-digitalocean.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.9.0-digitalocean - Build and push (master) | |
# Run only on master | |
if: github.ref == 'refs/heads/master' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.9.0-digitalocean | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-9-0-digitalocean.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-9-0-digitalocean.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.9.0-digitalocean - Build and push (release) | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.9.0-digitalocean | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-9-0-digitalocean.outputs.VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-9-0-digitalocean.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-9-0-digitalocean.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
# This step generates the docker tags | |
- name: Prepare | |
id: prep-v1-9-0-dnsimple | |
run: | | |
set -e | |
# Get ref, i.e. <branch_name> from refs/heads/<branch_name>, or <tag-name> from refs/tags/<tag_name>. E.g. 'master' or 'v0.0.0' | |
REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) | |
# Get short commit hash E.g. 'abc0123' | |
SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) | |
# Generate docker image tags | |
# E.g. 'v0.0.0-<variant>' and 'v0.0.0-abc0123-<variant>' | |
# E.g. 'master-<variant>' and 'master-abc0123-<variant>' | |
VARIANT="v1.9.0-dnsimple" | |
REF_VARIANT="${REF}-${VARIANT}" | |
REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" | |
# Pass variables to next step | |
echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT | |
echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT | |
- name: v1.9.0-dnsimple - Build (PRs) | |
# Run only on pull requests | |
if: github.event_name == 'pull_request' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.9.0-dnsimple | |
platforms: linux/amd64 | |
push: false | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-9-0-dnsimple.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-9-0-dnsimple.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.9.0-dnsimple - Build and push (master) | |
# Run only on master | |
if: github.ref == 'refs/heads/master' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.9.0-dnsimple | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-9-0-dnsimple.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-9-0-dnsimple.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.9.0-dnsimple - Build and push (release) | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.9.0-dnsimple | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-9-0-dnsimple.outputs.VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-9-0-dnsimple.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-9-0-dnsimple.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
# This step generates the docker tags | |
- name: Prepare | |
id: prep-v1-9-0-dnsmadeeasy | |
run: | | |
set -e | |
# Get ref, i.e. <branch_name> from refs/heads/<branch_name>, or <tag-name> from refs/tags/<tag_name>. E.g. 'master' or 'v0.0.0' | |
REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) | |
# Get short commit hash E.g. 'abc0123' | |
SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) | |
# Generate docker image tags | |
# E.g. 'v0.0.0-<variant>' and 'v0.0.0-abc0123-<variant>' | |
# E.g. 'master-<variant>' and 'master-abc0123-<variant>' | |
VARIANT="v1.9.0-dnsmadeeasy" | |
REF_VARIANT="${REF}-${VARIANT}" | |
REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" | |
# Pass variables to next step | |
echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT | |
echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT | |
- name: v1.9.0-dnsmadeeasy - Build (PRs) | |
# Run only on pull requests | |
if: github.event_name == 'pull_request' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.9.0-dnsmadeeasy | |
platforms: linux/amd64 | |
push: false | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-9-0-dnsmadeeasy.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-9-0-dnsmadeeasy.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.9.0-dnsmadeeasy - Build and push (master) | |
# Run only on master | |
if: github.ref == 'refs/heads/master' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.9.0-dnsmadeeasy | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-9-0-dnsmadeeasy.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-9-0-dnsmadeeasy.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.9.0-dnsmadeeasy - Build and push (release) | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.9.0-dnsmadeeasy | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-9-0-dnsmadeeasy.outputs.VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-9-0-dnsmadeeasy.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-9-0-dnsmadeeasy.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
# This step generates the docker tags | |
- name: Prepare | |
id: prep-v1-9-0-google | |
run: | | |
set -e | |
# Get ref, i.e. <branch_name> from refs/heads/<branch_name>, or <tag-name> from refs/tags/<tag_name>. E.g. 'master' or 'v0.0.0' | |
REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) | |
# Get short commit hash E.g. 'abc0123' | |
SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) | |
# Generate docker image tags | |
# E.g. 'v0.0.0-<variant>' and 'v0.0.0-abc0123-<variant>' | |
# E.g. 'master-<variant>' and 'master-abc0123-<variant>' | |
VARIANT="v1.9.0-google" | |
REF_VARIANT="${REF}-${VARIANT}" | |
REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" | |
# Pass variables to next step | |
echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT | |
echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT | |
- name: v1.9.0-google - Build (PRs) | |
# Run only on pull requests | |
if: github.event_name == 'pull_request' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.9.0-google | |
platforms: linux/amd64 | |
push: false | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-9-0-google.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-9-0-google.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.9.0-google - Build and push (master) | |
# Run only on master | |
if: github.ref == 'refs/heads/master' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.9.0-google | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-9-0-google.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-9-0-google.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.9.0-google - Build and push (release) | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.9.0-google | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-9-0-google.outputs.VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-9-0-google.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-9-0-google.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
# This step generates the docker tags | |
- name: Prepare | |
id: prep-v1-9-0-linode | |
run: | | |
set -e | |
# Get ref, i.e. <branch_name> from refs/heads/<branch_name>, or <tag-name> from refs/tags/<tag_name>. E.g. 'master' or 'v0.0.0' | |
REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) | |
# Get short commit hash E.g. 'abc0123' | |
SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) | |
# Generate docker image tags | |
# E.g. 'v0.0.0-<variant>' and 'v0.0.0-abc0123-<variant>' | |
# E.g. 'master-<variant>' and 'master-abc0123-<variant>' | |
VARIANT="v1.9.0-linode" | |
REF_VARIANT="${REF}-${VARIANT}" | |
REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" | |
# Pass variables to next step | |
echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT | |
echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT | |
- name: v1.9.0-linode - Build (PRs) | |
# Run only on pull requests | |
if: github.event_name == 'pull_request' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.9.0-linode | |
platforms: linux/amd64 | |
push: false | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-9-0-linode.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-9-0-linode.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.9.0-linode - Build and push (master) | |
# Run only on master | |
if: github.ref == 'refs/heads/master' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.9.0-linode | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-9-0-linode.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-9-0-linode.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.9.0-linode - Build and push (release) | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.9.0-linode | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-9-0-linode.outputs.VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-9-0-linode.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-9-0-linode.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
# This step generates the docker tags | |
- name: Prepare | |
id: prep-v1-9-0-luadns | |
run: | | |
set -e | |
# Get ref, i.e. <branch_name> from refs/heads/<branch_name>, or <tag-name> from refs/tags/<tag_name>. E.g. 'master' or 'v0.0.0' | |
REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) | |
# Get short commit hash E.g. 'abc0123' | |
SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) | |
# Generate docker image tags | |
# E.g. 'v0.0.0-<variant>' and 'v0.0.0-abc0123-<variant>' | |
# E.g. 'master-<variant>' and 'master-abc0123-<variant>' | |
VARIANT="v1.9.0-luadns" | |
REF_VARIANT="${REF}-${VARIANT}" | |
REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" | |
# Pass variables to next step | |
echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT | |
echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT | |
- name: v1.9.0-luadns - Build (PRs) | |
# Run only on pull requests | |
if: github.event_name == 'pull_request' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.9.0-luadns | |
platforms: linux/amd64 | |
push: false | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-9-0-luadns.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-9-0-luadns.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.9.0-luadns - Build and push (master) | |
# Run only on master | |
if: github.ref == 'refs/heads/master' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.9.0-luadns | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-9-0-luadns.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-9-0-luadns.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.9.0-luadns - Build and push (release) | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.9.0-luadns | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-9-0-luadns.outputs.VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-9-0-luadns.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-9-0-luadns.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
# This step generates the docker tags | |
- name: Prepare | |
id: prep-v1-9-0-nsone | |
run: | | |
set -e | |
# Get ref, i.e. <branch_name> from refs/heads/<branch_name>, or <tag-name> from refs/tags/<tag_name>. E.g. 'master' or 'v0.0.0' | |
REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) | |
# Get short commit hash E.g. 'abc0123' | |
SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) | |
# Generate docker image tags | |
# E.g. 'v0.0.0-<variant>' and 'v0.0.0-abc0123-<variant>' | |
# E.g. 'master-<variant>' and 'master-abc0123-<variant>' | |
VARIANT="v1.9.0-nsone" | |
REF_VARIANT="${REF}-${VARIANT}" | |
REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" | |
# Pass variables to next step | |
echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT | |
echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT | |
- name: v1.9.0-nsone - Build (PRs) | |
# Run only on pull requests | |
if: github.event_name == 'pull_request' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.9.0-nsone | |
platforms: linux/amd64 | |
push: false | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-9-0-nsone.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-9-0-nsone.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.9.0-nsone - Build and push (master) | |
# Run only on master | |
if: github.ref == 'refs/heads/master' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.9.0-nsone | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-9-0-nsone.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-9-0-nsone.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.9.0-nsone - Build and push (release) | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.9.0-nsone | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-9-0-nsone.outputs.VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-9-0-nsone.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-9-0-nsone.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
# This step generates the docker tags | |
- name: Prepare | |
id: prep-v1-9-0-ovh | |
run: | | |
set -e | |
# Get ref, i.e. <branch_name> from refs/heads/<branch_name>, or <tag-name> from refs/tags/<tag_name>. E.g. 'master' or 'v0.0.0' | |
REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) | |
# Get short commit hash E.g. 'abc0123' | |
SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) | |
# Generate docker image tags | |
# E.g. 'v0.0.0-<variant>' and 'v0.0.0-abc0123-<variant>' | |
# E.g. 'master-<variant>' and 'master-abc0123-<variant>' | |
VARIANT="v1.9.0-ovh" | |
REF_VARIANT="${REF}-${VARIANT}" | |
REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" | |
# Pass variables to next step | |
echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT | |
echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT | |
- name: v1.9.0-ovh - Build (PRs) | |
# Run only on pull requests | |
if: github.event_name == 'pull_request' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.9.0-ovh | |
platforms: linux/amd64 | |
push: false | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-9-0-ovh.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-9-0-ovh.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.9.0-ovh - Build and push (master) | |
# Run only on master | |
if: github.ref == 'refs/heads/master' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.9.0-ovh | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-9-0-ovh.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-9-0-ovh.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.9.0-ovh - Build and push (release) | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.9.0-ovh | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-9-0-ovh.outputs.VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-9-0-ovh.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-9-0-ovh.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
# This step generates the docker tags | |
- name: Prepare | |
id: prep-v1-9-0-rfc2136 | |
run: | | |
set -e | |
# Get ref, i.e. <branch_name> from refs/heads/<branch_name>, or <tag-name> from refs/tags/<tag_name>. E.g. 'master' or 'v0.0.0' | |
REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) | |
# Get short commit hash E.g. 'abc0123' | |
SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) | |
# Generate docker image tags | |
# E.g. 'v0.0.0-<variant>' and 'v0.0.0-abc0123-<variant>' | |
# E.g. 'master-<variant>' and 'master-abc0123-<variant>' | |
VARIANT="v1.9.0-rfc2136" | |
REF_VARIANT="${REF}-${VARIANT}" | |
REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" | |
# Pass variables to next step | |
echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT | |
echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT | |
- name: v1.9.0-rfc2136 - Build (PRs) | |
# Run only on pull requests | |
if: github.event_name == 'pull_request' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.9.0-rfc2136 | |
platforms: linux/amd64 | |
push: false | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-9-0-rfc2136.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-9-0-rfc2136.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.9.0-rfc2136 - Build and push (master) | |
# Run only on master | |
if: github.ref == 'refs/heads/master' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.9.0-rfc2136 | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-9-0-rfc2136.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-9-0-rfc2136.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.9.0-rfc2136 - Build and push (release) | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.9.0-rfc2136 | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-9-0-rfc2136.outputs.VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-9-0-rfc2136.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-9-0-rfc2136.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
# This step generates the docker tags | |
- name: Prepare | |
id: prep-v1-9-0-route53 | |
run: | | |
set -e | |
# Get ref, i.e. <branch_name> from refs/heads/<branch_name>, or <tag-name> from refs/tags/<tag_name>. E.g. 'master' or 'v0.0.0' | |
REF=$( echo "${GITHUB_REF}" | rev | cut -d '/' -f 1 | rev ) | |
# Get short commit hash E.g. 'abc0123' | |
SHA=$( echo "${GITHUB_SHA}" | cut -c1-7 ) | |
# Generate docker image tags | |
# E.g. 'v0.0.0-<variant>' and 'v0.0.0-abc0123-<variant>' | |
# E.g. 'master-<variant>' and 'master-abc0123-<variant>' | |
VARIANT="v1.9.0-route53" | |
REF_VARIANT="${REF}-${VARIANT}" | |
REF_SHA_VARIANT="${REF}-${SHA}-${VARIANT}" | |
# Pass variables to next step | |
echo "VARIANT_BUILD_DIR=$VARIANT_BUILD_DIR" >> $GITHUB_OUTPUT | |
echo "VARIANT=$VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_VARIANT=$REF_VARIANT" >> $GITHUB_OUTPUT | |
echo "REF_SHA_VARIANT=$REF_SHA_VARIANT" >> $GITHUB_OUTPUT | |
- name: v1.9.0-route53 - Build (PRs) | |
# Run only on pull requests | |
if: github.event_name == 'pull_request' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.9.0-route53 | |
platforms: linux/amd64 | |
push: false | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-9-0-route53.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-9-0-route53.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.9.0-route53 - Build and push (master) | |
# Run only on master | |
if: github.ref == 'refs/heads/master' | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.9.0-route53 | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-9-0-route53.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-9-0-route53.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
- name: v1.9.0-route53 - Build and push (release) | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v5 | |
with: | |
context: variants/v1.9.0-route53 | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ github.repository }}:${{ steps.prep-v1-9-0-route53.outputs.VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-9-0-route53.outputs.REF_VARIANT }} | |
${{ github.repository }}:${{ steps.prep-v1-9-0-route53.outputs.REF_SHA_VARIANT }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max | |
# Temp fix | |
# https://github.com/docker/build-push-action/issues/252 | |
# https://github.com/moby/buildkit/issues/1896 | |
- name: Move cache | |
run: | | |
rm -rf /tmp/.buildx-cache | |
mv /tmp/.buildx-cache-new /tmp/.buildx-cache | |
update-draft-release: | |
needs: | |
- build-1-12-0 | |
- build-1-11-0 | |
- build-1-10-1 | |
- build-1-9-0 | |
if: github.ref == 'refs/heads/master' | |
runs-on: ubuntu-latest | |
steps: | |
# Drafts your next Release notes as Pull Requests are merged into "master" | |
- uses: release-drafter/release-drafter@v5 | |
with: | |
config-name: release-drafter.yml | |
publish: false | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
publish-draft-release: | |
needs: | |
- build-1-12-0 | |
- build-1-11-0 | |
- build-1-10-1 | |
- build-1-9-0 | |
if: startsWith(github.ref, 'refs/tags/') | |
runs-on: ubuntu-latest | |
steps: | |
# Drafts your next Release notes as Pull Requests are merged into "master" | |
- uses: release-drafter/release-drafter@v5 | |
with: | |
config-name: release-drafter.yml | |
publish: true | |
name: ${{ github.ref_name }} # E.g. 'master' or 'v1.2.3' | |
tag: ${{ github.ref_name }} # E.g. 'master' or 'v1.2.3' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
update-dockerhub-description: | |
needs: | |
- build-1-12-0 | |
- build-1-11-0 | |
- build-1-10-1 | |
- build-1-9-0 | |
if: github.ref == 'refs/heads/master' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Docker Hub Description | |
uses: peter-evans/dockerhub-description@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_REGISTRY_USER }} | |
password: ${{ secrets.DOCKERHUB_REGISTRY_PASSWORD }} | |
repository: ${{ github.repository }} | |
short-description: ${{ github.event.repository.description }} |