Skip to content

try using the secret again #30

try using the secret again

try using the secret again #30

Workflow file for this run

name: Build
on:
push:
tags:
- 'v*'
branches:
- "main"
release:
types: [created, published]
env:
REGISTRY: quay.io/innovation-hub-bergisches-rheinland
jobs:
build:
name: Build Image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Cache Docker layers
uses: actions/cache@v3
id: cache
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: |
${{ env.REGISTRY }}/keycloak
tags: |
type=ref,event=branch
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: Log into registry ${{ env.REGISTRY }}
uses: docker/login-action@v3
if: ${{ github.event_name == 'push' || (github.event_name == 'release' && github.event.action == 'created') }}
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.QUAY_IO_USERNAME }}
password: ${{ secrets.QUAY_IO_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
push: ${{ github.event_name == 'push' || (github.event_name == 'release' && github.event.action == 'created') }}
file: Dockerfile
context: .
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max