Skip to content

build(deps): bump actions/setup-node from 6.0.0 to 6.1.0 (#3020) #360

build(deps): bump actions/setup-node from 6.0.0 to 6.1.0 (#3020)

build(deps): bump actions/setup-node from 6.0.0 to 6.1.0 (#3020) #360

Workflow file for this run

# docker.yaml - builds and pushes a kroxylicious container image.
#
# Requires repository variables:
# - REGISTRY_SERVER - the server of the container registry service e.g. `quay.io` or `docker.io`
# - REGISTRY_USERNAME - your username on the service (or username of your robot account)
# - REGISTRY_DESTINATION - the push destination (without tag portion) e.g. `quay.io/<my org>/kroxylicious`
# and a repository secret
# - REGISTRY_TOKEN - the access token that corresponds to `REGISTRY_USERNAME`
#
# If the required repository variables aren't set the workflow will be skipped. This means the workflow won't fail
# on the forks of developers who haven't configured the variables/secrets.
name: Docker Build
on:
workflow_dispatch:
push:
branches:
- 'main'
tags:
- 'v*.*.*'
pull_request:
types: [ opened, synchronize, reopened ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up QEMU
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435
- name: Set up Java
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: '17'
- name: Determine Build Configuration
id: build_configuration
run: |
RELEASE_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
echo "release_version=${RELEASE_VERSION}" >> $GITHUB_OUTPUT
if [[ "${{ github.event_name }}" == "pull_request" || "${{ vars.REGISTRY_SERVER }}" == "" ]]; then
echo "proxy_tags=kroxylicious-proxy:${RELEASE_VERSION}" >> $GITHUB_OUTPUT
echo "operator_tags=kroxylicious-operator:${RELEASE_VERSION}" >> $GITHUB_OUTPUT
echo "push_images=false" >> $GITHUB_OUTPUT
else
PROXY_IMAGE="${{ vars.REGISTRY_SERVER }}/${{ vars.REGISTRY_ORGANISATION }}/${{ vars.PROXY_IMAGE_NAME }}"
OPERATOR_IMAGE="${{ vars.REGISTRY_SERVER }}/${{ vars.REGISTRY_ORGANISATION }}/${{ vars.OPERATOR_IMAGE_NAME }}"
echo "proxy_tags=${PROXY_IMAGE}:${RELEASE_VERSION}" >> $GITHUB_OUTPUT
echo "operator_tags=${OPERATOR_IMAGE}:${RELEASE_VERSION},${OPERATOR_IMAGE}:latest" >> $GITHUB_OUTPUT
echo "push_images=true" >> $GITHUB_OUTPUT
fi
- name: Login to container registry
if: steps.build_configuration.outputs.push_images == 'true'
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef
with:
registry: ${{ vars.REGISTRY_SERVER }}
username: ${{ vars.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and maybe push Proxy image
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83
with:
context: .
platforms: linux/amd64,linux/arm64
push: ${{ steps.build_configuration.outputs.push_images == 'true' }}
build-args: |
KROXYLICIOUS_VERSION=${{ steps.build_configuration.outputs.release_version }}
tags: ${{ steps.build_configuration.outputs.proxy_tags }}
cache-from: type=gha
cache-to: type=gha,mode=max,compression=zstd
- name: Build and maybe push Operator image
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83
with:
context: .
file: ./Dockerfile.operator
platforms: linux/amd64,linux/arm64
push: ${{ steps.build_configuration.outputs.push_images == 'true' }}
build-args: |
KROXYLICIOUS_VERSION=${{ steps.build_configuration.outputs.release_version }}
tags: ${{ steps.build_configuration.outputs.operator_tags }}
cache-from: type=gha
cache-to: type=gha,mode=max,compression=zstd