Merge pull request #137 from joesturge/dependabot/cargo/tests/bot/aza… #25
Workflow file for this run
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: Build And Push Docker Image | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
build: | |
name: Build And Push | |
runs-on: ubuntu-latest | |
env: | |
REGISTRY: ghcr.io | |
IMAGE_NAME: ${{ github.repository }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
permissions: | |
contents: read | |
packages: write | |
attestations: write | |
id-token: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: docker | |
uses: ./.github/actions/docker | |
with: | |
publish: true | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
ref: master | |
- name: Update changelog | |
id: update_changelog | |
uses: thomaseizinger/[email protected] | |
with: | |
tag: ${{ github.ref_name }} | |
- name: Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
body: ${{ steps.update_changelog.outputs.release-notes }} | |
draft: false | |
prerelease: false | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
title: Release ${{ github.ref_name }} | |
branch: release/${{ github.ref_name }} | |
labels: release | |
commit-message: "[ci skip] update changelog for ${{ github.ref_name }}" | |
body: This PR was created by the release workflow. |