forked from sustainable-computing-io/kepler-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 1005 Bytes
/
publish-images.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
name: Publish Images
on:
push:
branches: [ v1alpha1 ]
jobs:
publish:
name: Publish 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
cache: true
- uses: ./.github/compute-version
id: version
- name: additional tags
id: additional_tags
shell: bash
run: |
echo "result=$(git rev-parse --short HEAD),v1alpha1" >> $GITHUB_OUTPUT
- name: build and publish images to external registry
uses: ./.github/publish-images
with:
image_registry: ${{ vars.IMG_BASE }}
registry_login: ${{ secrets.BOT_NAME }}
registry_token: ${{ secrets.BOT_TOKEN }}
version: ${{ steps.version.outputs.version }}
additional_tags: ${{ steps.additional_tags.outputs.result }}