-
Notifications
You must be signed in to change notification settings - Fork 6
59 lines (48 loc) · 2.22 KB
/
release-airgap-artifacts.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
55
56
57
58
59
name: Release airgap artifacts
on:
push:
tags:
- 'v*'
permissions:
contents: read
id-token: write
jobs:
release-airgap-artifacts:
name: Start airgap release
runs-on:
- self-hosted
- medium
steps:
- name: Checkout code
uses: actions/checkout@v3
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.PRIVATE_SSH_KEY }}
- name: Extract tag name
shell: bash
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: arn:aws:iam::999867407951:role/dkp-catalog-applications
aws-region: us-west-2
- name: make release.chart-bundle
run: make ci.docker.run GOOS=linux GOARCH=amd64 RUN_WHAT="make release.chart-bundle"
- name: make release.chart-bundle (DKP)
run: make ci.docker.run GOOS=linux GOARCH=amd64 RUN_WHAT="make release.chart-bundle DKP_OR_NKP_PREFIX=dkp"
- name: make release.repo-archive
run: make ci.docker.run GOOS=linux GOARCH=amd64 RUN_WHAT="make release.repo-archive CATALOG_APPLICATIONS_VERSION=${{ env.RELEASE_VERSION }}"
- name: make release.repo-archive (DKP)
run: make ci.docker.run GOOS=linux GOARCH=amd64 RUN_WHAT="make release.repo-archive CATALOG_APPLICATIONS_VERSION=${{ env.RELEASE_VERSION }} DKP_OR_NKP_PREFIX=dkp"
- name: make release.save-images
run: make ci.docker.run GOOS=linux GOARCH=amd64 RUN_WHAT="make release.save-images.tar"
- name: make release.save-images (DKP)
run: make ci.docker.run GOOS=linux GOARCH=amd64 RUN_WHAT="make release.save-images.tar DKP_OR_NKP_PREFIX=dkp"
- name: make release.s3
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
run: make ci.docker.run GOOS=linux GOARCH=amd64 RUN_WHAT="make release.s3 CATALOG_APPLICATIONS_VERSION=${{ env.RELEASE_VERSION }}"
- name: make release.s3 (DKP)
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
run: make ci.docker.run GOOS=linux GOARCH=amd64 RUN_WHAT="make release.s3 CATALOG_APPLICATIONS_VERSION=${{ env.RELEASE_VERSION }} DKP_OR_NKP_PREFIX=dkp"