-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (37 loc) · 1.3 KB
/
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
41
42
43
44
45
46
name: release
on:
push:
tags:
- v*
jobs:
release:
runs-on: ubuntu-latest
steps:
- id: get_version
run: echo ::set-output name=version::${GITHUB_REF/refs\/tags\//}
- uses: actions/checkout@v2
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
- uses: docker/login-action@v1
with:
username: smartxrocks
password: ${{ secrets.DOCKERHUB_PUSH_TOKEN }}
- uses: docker/build-push-action@v2
with:
file: Dockerfile
tags: docker.io/smartxworks/capch-controller:${{ steps.get_version.outputs.version }}
platforms: linux/amd64,linux/arm64
push: true
- run: |
curl -sLo /tmp/skaffold https://storage.googleapis.com/skaffold/releases/latest/skaffold-linux-amd64
chmod +x /tmp/skaffold
/tmp/skaffold render --default-repo=docker.io/smartxworks --offline=true > infrastructure-components.yaml
- uses: softprops/action-gh-release@v1
with:
files: |
infrastructure-components.yaml
metadata.yaml
templates/cluster-template.yaml
templates/cluster-template-internal.yaml
templates/cluster-template-cdi-internal.yaml
templates/cluster-template-cdi.yaml