-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (41 loc) · 1.29 KB
/
build-csi-sidecar-images.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
47
48
49
50
51
52
name: Build CSI Sidecar Images
on:
workflow_dispatch:
inputs:
registry_name:
description: "Docker registry name. For example: longhornio"
default: "longhornio"
required: true
list_of_repo_branch_tag:
description: "Space separated list of repo:branch:tag. For example:csi-attacher:longhorn-release-4.6.1:v4.6.1-20241007 csi-provisioner:longhorn-release-4.0.1:v4.6.1-20241007"
required: true
create_tag:
description: "Create tag"
default: "false"
defaults:
run:
shell: bash
env:
CARGO_TERM_COLOR: always
jobs:
release:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
permissions:
contents: write
steps:
- name: Setup Git
run: |
gh auth setup-git
- run: |
git config --global user.email "[email protected]"
git config --global user.name "Derek Su"
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- uses: actions/checkout@v4
- name: Build Images
run: bash ./scripts/build-csi-sidecar-images.sh "${{ inputs.registry_name }}" "${{ inputs.list_of_repo_branch_tag }}" "${{ inputs.create_tag }}"