generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 65
54 lines (52 loc) · 1.52 KB
/
create_release.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
53
54
on:
push:
tags:
- "v*"
name: Upload Release Asset
jobs:
build-and-push-image:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: build image
shell: bash
env:
QUAY_TOKEN: ${{secrets.QUAY_TOKEN}}
REGISTRY: "quay.io/capk"
TAG: ${{ github.ref_name }}
run: |
echo $QUAY_TOKEN | docker login -u="capk+capk_robot" quay.io --password-stdin
make docker-build-all
make docker-push-all
build:
name: Upload Release Asset
needs: build-and-push-image
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
- name: Install kustomize
run: curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash
- name: Create infrastructure components
env:
REGISTRY: "quay.io/capk"
IMAGE_NAME: "capk-manager"
TAG: ${{ github.ref_name }}
run: |
make create-infrastructure-components
- name: Create Release
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
fail_on_unmatched_files: true
files: |
infrastructure-components.yaml
metadata.yaml
templates/*.yaml