-
Notifications
You must be signed in to change notification settings - Fork 40
65 lines (63 loc) · 2.05 KB
/
version_k8_op.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Bump Version and Release K8 Operator
on:
workflow_run:
workflows: [ "Test K8 Operator" ]
types:
- completed
branches:
- main
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
rev_and_release:
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GH_PAT }}
fetch-depth: 0
- name: Increment version
id: increment_version
working-directory: k8s-operator
run: |
make increment-patch
- name: Get current version
id: get_version
run: echo "version=$(cat k8s-operator/VERSION)" >> $GITHUB_OUTPUT
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "bumping versions for k8s operator"
tagging_message: ${{ env.TAGGING_MESSAGE }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.21.x'
cache-dependency-path: k8s-operator/go.sum
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: "build"
run: make build docker-buildx
working-directory: k8s-operator
# - name: "bundle"
# run: make bundle bundle-build bundle-push
# working-directory: k8s-operator
- name: "eidolon-chart"
run: make eidolon-chart
working-directory: k8s-operator
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Committing docs and chart updates"
tagging_message: ${{ env.TAGGING_MESSAGE }}
# - name: "catalog"
# run: make catalog-build catalog-push
# working-directory: k8s-operator