Skip to content

Merge pull request #307 from validatedpatterns/konflux/references/main #1335

Merge pull request #307 from validatedpatterns/konflux/references/main

Merge pull request #307 from validatedpatterns/konflux/references/main #1335

Workflow file for this run

name: "Docker Build"
on: [push, pull_request]
jobs:
docker-build:
name: Docker Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Docker Build
env:
KEY: ${{ secrets.API_KEY }}
shell: bash
run: |
set -e
export APIFILE="internal/controller/apikey.txt"
trap "rm -f ${APIFILE}" SIGINT EXIT
if [ -z "${KEY}" ]; then
echo "Key is empty"
echo '' > "${APIFILE}"
else
echo "Key is set"
echo "${KEY}" > "${APIFILE}"
fi
make USE_IMAGE_DIGESTS=true docker-build