fix: release-please.yaml output test 2 #27
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
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
pull-requests: write | |
name: Release | |
jobs: | |
release-please: | |
runs-on: ubuntu-latest | |
env: | |
REGISTRY: ghcr.io | |
IMAGE_NAME: ${{ github.repository }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: googleapis/release-please-action@v4 | |
id: release | |
with: | |
skip-github-pull-request: true | |
- run: echo "${{steps.release.outputs.release-created}}" | |
- run: echo "${{steps.release.outputs.release-created == 'true'}}" | |
- run: echo "${{toJSON(steps.release.outputs)}}" | |
# Docker build | |
- name: Set up Docker Buildx | |
if: ${{ steps.release.outputs.release_created == 'true' }} | |
uses: docker/setup-buildx-action@v3 | |
- name: Log in to the Container registry | |
uses: docker/login-action@v3 | |
if: ${{ steps.release.outputs.release_created == 'true' }} | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push Docker image | |
uses: docker/build-push-action@v6 | |
if: ${{ steps.release.outputs.release_created == 'true' }} | |
env: | |
TAG: ${{ steps.release.outputs.version }} | |
with: | |
context: . | |
file: ./Dockerfile | |
push: true | |
tags: "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{env.TAG}}" | |
platforms: | | |
linux/amd64 | |
linux/arm64 | |
# Helm Chart | |
- name: Configure Git | |
if: ${{ steps.release.outputs.release_created == 'true' }} | |
run: | | |
git config user.name "$GITHUB_ACTOR" | |
git config user.email "[email protected]" | |
- name: Install Helm | |
uses: azure/setup-helm@v4 | |
if: ${{ steps.release.outputs.release_created == 'true' }} | |
env: | |
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
- name: Run chart-releaser | |
uses: helm/[email protected] | |
if: ${{ steps.release.outputs.release_created == 'true' }} | |
env: | |
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" |