-
Notifications
You must be signed in to change notification settings - Fork 21
40 lines (36 loc) · 1.16 KB
/
go-release.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
name: GoRelease
on:
push:
tags:
- 'v*.*.*'
env:
TAG: ${{ github.ref_name }}
jobs:
release:
name: release
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v4
- name: install Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: build images
run: |
make build-images
- name: push image
run: |
echo ${{ secrets.DOCKER_PASSWORD }} | docker login quay.io --username ${{ secrets.DOCKER_USER }} --password-stdin
docker push quay.io/open-cluster-management/governance-policy-framework-addon:$TAG
- name: generate changelog
run: |
echo "# governance-policy-framework-addon $TAG" > /home/runner/work/changelog.txt
echo "- The released image is quay.io/open-cluster-management/governance-policy-framework-addon:$TAG" >> /home/runner/work/changelog.txt
- name: publish release
uses: softprops/action-gh-release@v0.1.15
with:
body_path: /home/runner/work/changelog.txt
generate_release_notes: true
draft: true
prerelease: false