forked from sustainable-computing-io/kepler-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (44 loc) · 1.34 KB
/
image.yaml
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
name: images
on:
push:
branches: [ v1alpha1 ]
jobs:
push-image:
name: Push operator container images
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v3
- uses: actions/setup-go@main
with:
go-version-file: go.mod
- name: Login to Quay
uses: docker/login-action@v2
with:
registry: quay.io/sustainable_computing_io
username: ${{ secrets.BOT_NAME }}
password: ${{ secrets.BOT_TOKEN }}
- name: Generate Version
id: version
run: |
version="$(cat VERSION)-$(date +%y%m%d%H%M%S)"
echo VERSION=$version
echo "version=$version" >> $GITHUB_OUTPUT
- name: Build Operator
run: |
make operator-build
env:
VERSION: ${{ steps.version.outputs.version }}
IMG_BASE: ${{ vars.IMG_BASE }}
- name: Build Bundle
run: |
make bundle bundle-build
env:
VERSION: ${{ steps.version.outputs.version }}
IMG_BASE: ${{ vars.IMG_BASE }}
- name: Push Images
run: |
make operator-push bundle-push
env:
VERSION: ${{ steps.version.outputs.version }}
IMG_BASE: ${{ vars.IMG_BASE }}