-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (62 loc) · 1.55 KB
/
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
55
56
57
58
59
60
61
62
63
64
65
66
67
env:
USER: devopsiaci
REPO: ecr-token
on:
push:
branches:
- main
jobs:
release:
name: Create tag release
runs-on: ubuntu-latest
strategy:
matrix:
kubectl_version:
- 1.19.16
- 1.20.15
- 1.21.13
- 1.22.13
- 1.22.15
- 1.23.10
- 1.23.12
- 1.23.13
- 1.23.14
- 1.23.15
- 1.23.16
- 1.24.10
- 1.24.4
- 1.24.6
- 1.24.7
- 1.24.8
- 1.24.9
- 1.25.0
- 1.25.2
- 1.25.3
- 1.25.4
- 1.25.5
- 1.25.6
- 1.26.0
- 1.26.1
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .
push: true
platforms: linux/amd64
build-args: |
KUBECTL_VERSION=${{ matrix.kubectl_version }}
tags: ${{ env.USER }}/${{ env.REPO }}:kubectl-${{ matrix.kubectl_version }},${{ env.USER }}/${{ env.REPO }}:${{ matrix.kubectl_version }}
- name: Update Docker registry description
uses: peter-evans/dockerhub-description@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
repository: ${{ env.USER }}/${{ env.REPO }}