Skip to content

Update int128/docker-build-cache-config-action action to v1.17.0 #49

Update int128/docker-build-cache-config-action action to v1.17.0

Update int128/docker-build-cache-config-action action to v1.17.0 #49

Workflow file for this run

name: release
on:
pull_request:
paths:
- .github/workflows/release.yaml
- .github/workflows/build.yaml
- .github/workflows/reusable--build-and-test.yaml
- .github/workflows/reusable--e2e-test.yaml
- Dockerfile
- hack/**
push:
branches:
- main
paths:
- .github/workflows/release.yaml
- .github/workflows/build.yaml
- .github/workflows/reusable--build-and-test.yaml
- .github/workflows/reusable--e2e-test.yaml
- Dockerfile
- hack/**
jobs:
# When the runner version is updated by Renovate,
# create a new release.
create-release-if-not-exists:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- run: bash hack/create-release-if-not-exists.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Since GITHUB_TOKEN does not trigger the workflow,
# we need to manually build a new release.
get-latest-release:
if: github.event_name == 'push'
needs: create-release-if-not-exists
runs-on: ubuntu-latest
timeout-minutes: 10
outputs:
tag: ${{ steps.latest-release.outputs.tag }}
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- run: echo "tag=$(gh release view --json tagName --jq .tagName)" >> "$GITHUB_OUTPUT"
id: latest-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build-latest-release:
needs: get-latest-release
uses: ./.github/workflows/build.yaml
secrets: inherit
with:
context: https://github.com/${{ github.repository }}.git#${{ needs.get-latest-release.outputs.tag }}
tags: ${{ needs.get-latest-release.outputs.tag }}