-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (40 loc) · 1.22 KB
/
workflow-main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Main branch workflow
on:
push:
branches:
- main
env:
IMAGE_ARCHITECTURES: linux/amd64,linux/arm64
IMAGE_REGISTRY: ghcr.io
DOCKERFILE_PATH: build/Dockerfile
IMAGE_DESCRIPTION: |
This Docker image is a CLI tool for evaluating the health and severity of various SSV client related metrics over time.
jobs:
publish-release:
name: Publish Release
runs-on: ubuntu-latest
outputs:
new_tag: ${{ steps.tag_version.outputs.new_tag }}
steps:
- uses: actions/checkout@v4
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Create a GitHub release
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.tag_version.outputs.new_tag }}
name: Release ${{ steps.tag_version.outputs.new_tag }}
body: ${{ steps.tag_version.outputs.changelog }}
docker-build-push:
uses: ./.github/workflows/docker.yml
permissions:
id-token: write
packages: write
contents: read
needs: publish-release
with:
with-push: true
image-tag: ${{ needs.publish-release.outputs.new_tag }}