Skip to content

Update project.yml

Update project.yml #5

Workflow file for this run

name: Release
on:
pull_request:
types: [closed]
paths:
- '.github/project.yml'
jobs:
release:
runs-on: ubuntu-latest
name: release
if: ${{github.event.pull_request.merged == true}}
env:
GITHUB_TOKEN: ${{secrets.RELEASE_TOKEN}}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{secrets.RELEASE_TOKEN}}
- name: Retrieve Project Metadata
uses: radcortez/project-metadata-action@243817f1e0f2b4df4e012fc17efc45cff166425d
id: metadata
with:
github-token: ${{secrets.GITHUB_TOKEN}}
metadata-file-path: '.github/project.yml'
local-file: true
- name: Push Release Tag
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git tag -a ${{steps.metadata.outputs.current-version}} -m "v${{steps.metadata.outputs.current-version}}"
git push
git push --tags
- name: Login to Quay
uses: docker/login-action@v2
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: ui/
push: true
tags: |
quay.io/eyefloaters/ui:${{steps.metadata.outputs.current-version}}
- name: Create GitHub Release
uses: radcortez/milestone-release-action@98bd3321583e9bdbbe15c08fa4b2249371efaeaa
with:
github-token: ${{secrets.GITHUB_TOKEN}}
milestone-title: ${{steps.metadata.outputs.current-version}}
- name: Image Update
uses: renovatebot/[email protected]
with:
configurationFile: .github/gitops-config.json
token: ${{ secrets.RELEASE_TOKEN }}