chore(deps): update ghcr.io/renovatebot/renovate docker tag to v39.92… #216
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create Release | |
on: | |
# Only create a release if the Dockerfile has changed. | |
push: | |
branches: [main] | |
paths: | |
- 'renovate_image/Dockerfile' | |
workflow_dispatch: | |
inputs: | |
version_increment: | |
description: "Specifies how the release version will be incremented from the current version." | |
type: choice | |
required: true | |
default: minor | |
options: | |
- major | |
- minor | |
- patch | |
env: | |
REGISTRY: ghcr.io | |
IMAGE_NAME: ${{ github.repository }} | |
VERSION_INCREMENT: ${{ inputs.version_increment || 'patch' }} | |
jobs: | |
create_release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
outputs: | |
release_tag: ${{ steps.version.outputs.v-version }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: Get next version | |
uses: reecetech/[email protected] | |
id: version | |
with: | |
scheme: semver | |
increment: ${{ env.VERSION_INCREMENT }} | |
- name: Create Release | |
uses: softprops/[email protected] | |
id: release | |
with: | |
name: Release ${{ steps.version.outputs.version }} | |
tag_name: ${{ steps.version.outputs.v-version }} | |
generate_release_notes: true | |
build_and_push_image: | |
needs: [create_release] | |
if: success() | |
runs-on: ubuntu-latest | |
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job. | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: Log in to the Container registry | |
uses: docker/login-action@7ca345011ac4304463197fac0e56eab1bc7e6af0 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Extract metadata (tags, labels) for Docker | |
id: meta | |
uses: docker/metadata-action@906ecf0fc0a80f9110f79d9e6c04b1080f4a2621 | |
with: | |
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | |
- name: Build and push Docker image | |
uses: docker/build-push-action@7e094594beda23fc8f21fa31049f4b203e51096b | |
with: | |
context: ./renovate_image | |
push: true | |
tags: | | |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest | |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ needs.create_release.outputs.release_tag }} | |
labels: ${{ steps.meta.outputs.labels }} |