Skip to content

Bump alpine from 3.22.1 to 3.23.3 #166

Bump alpine from 3.22.1 to 3.23.3

Bump alpine from 3.22.1 to 3.23.3 #166

Workflow file for this run

name: Build
on:
push:
paths-ignore:
- '.gitignore'
- 'CODEOWNERS'
- 'LICENSE'
- '*.md'
- '*.adoc'
- '*.txt'
pull_request:
paths-ignore:
- '.gitignore'
- 'CODEOWNERS'
- 'LICENSE'
- '*.md'
- '*.adoc'
- '*.txt'
jobs:
container-build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: ./.github/workflows/env_setup
with:
docker_cache_enabled: true
- name: Login to GitHub Container Registry
if: env.PROTECTED_RUN == 'true'
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build image
id: build_image
run: |
export IMG_TAG=ci-${{ github.ref_name }}
if [[ "${{ github.ref_type }}" == "branch" && "${{ github.ref_name }}" == "main" ]]; then
export IMG_TAG=latest
elif [[ "${{ github.ref_type }}" == "tag" && "${{ github.ref_name }}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
export IMG_TAG=$(echo -n "${{ github.ref_name }}" | sed 's/^v//g')
fi
export IMG_TAG=${IMG_TAG//\//-}
echo "IMG_TAG=${IMG_TAG}" >> $GITHUB_OUTPUT
if [[ "${PROTECTED_RUN}" == "true" ]]; then
export DOCKER_BUILD_OPTIONS="--push"
fi
make docker-build