Skip to content

DBaas changelog v1.50 #86

DBaas changelog v1.50

DBaas changelog v1.50 #86

Workflow file for this run

name: Build preview images
on:
pull_request:
branches:
- master
env:
IMAGE: quay.io/elastx/elx-docs
QUAY_USER: elastx+cidocs
jobs:
buildcontent:
name: Hugo build & HTML Proofer
runs-on:
- self-hosted
- non-persistent
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set IMAGE_PREVIEW output parameters
id: ifo
run: |
PR_NUMBER=$(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ; { print $3 }')
echo "IMAGE_PREVIEW=$IMAGE:preview-${PR_NUMBER}-$(date +%s)" >> "$GITHUB_OUTPUT"
- name: Docker context
run: docker context create buildctx
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
with:
endpoint: buildctx
- name: Docker login
uses: docker/login-action@v3
with:
registry: quay.io
username: ${{ env.QUAY_USER }}
password: ${{ secrets.DOCKER_PASS }}
- name: Docker build
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: |
${{ steps.ifo.outputs.IMAGE_PREVIEW }}
cache-from: type=registry,ref=${{ steps.ifo.outputs.IMAGE_PREVIEW }}
cache-to: type=inline