-
Notifications
You must be signed in to change notification settings - Fork 172
61 lines (57 loc) · 1.8 KB
/
Copy pathrelease.yml
File metadata and controls
61 lines (57 loc) · 1.8 KB
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
60
61
name: "Release Container Image"
on:
workflow_dispatch:
inputs:
registryName:
description: "Target container registry. Defaults to ECR Public"
required: false
type: string
region:
description: "Target region. Defaults to us-east-1"
required: false
default: us-east-1
type: string
permissions:
contents: read
id-token: write
jobs:
unit-test:
uses: ./.github/workflows/go.yml
docker-build:
uses: ./.github/workflows/docker-image.yml
integ:
permissions:
contents: read
id-token: write
packages: write
uses: ./.github/workflows/integ.yml
release:
environment: prod
runs-on: ubuntu-latest
needs: [unit-test, docker-build, integ]
steps:
- name: Harden Runner
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@ce360397dd3f832beb865e1373c09c0e9f86d70a # v4.0.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0
with:
platforms: linux/amd64, linux/arm64
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@ec61189d14ec14c8efccab744f656cffd0e33f37 # v6.1.0
with:
role-to-assume: ${{ secrets.RELEASE_ROLE_ARN }}
role-session-name: csi-driver-cd-${{ github.run_id }}
aws-region: ${{ inputs.region }}
- name: Run make
run: make
env:
PRIVREPO: ${{ inputs.registryName }}
REGION: ${{ inputs.region }}