Skip to content

Commit b8077e0

Browse files
committed
test
1 parent 06a6e12 commit b8077e0

File tree

1 file changed

+102
-104
lines changed

1 file changed

+102
-104
lines changed

.github/workflows/release-for-ec.yaml

Lines changed: 102 additions & 104 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
name: release-for-ec
22

33
on:
4-
workflow_dispatch:
5-
inputs:
6-
tag:
7-
description: 'Tag to use for building images and tagging Helm chart (must end with -ec.<digit>, e.g. v1.92.0-ec.1)'
8-
required: true
9-
type: string
4+
push:
5+
branches:
6+
- release-for-ec-dispatch-workflow
107

118
permissions:
129
contents: write
@@ -17,114 +14,115 @@ jobs:
1714
steps:
1815
- name: Validate tag format
1916
run: |
20-
if ! [[ "${{ inputs.tag }}" =~ -ec\.[0-9]+$ ]]; then
17+
TAG="v1.124.15-ec.0"
18+
if ! [[ "$TAG" =~ -ec\.[0-9]+$ ]]; then
2119
echo "Error: Tag must end with -ec.<digit> suffix (e.g. v1.92.0-ec.1)"
2220
exit 1
2321
fi
24-
echo "Tag format is valid: ${{ inputs.tag }}"
22+
echo "Tag format is valid: $TAG"
2523
26-
build-migrations-melange-packages:
27-
needs: [validate-tag]
28-
strategy:
29-
fail-fast: true
30-
matrix:
31-
runner: [
32-
{name: ubuntu-latest, arch: amd64},
33-
{name: arm64-runner-set, arch: arm64}
34-
]
35-
runs-on: ${{ matrix.runner.name }}
36-
steps:
37-
- uses: actions/checkout@v4
38-
- uses: ./.github/actions/build-custom-melange-package
39-
with:
40-
context: migrations/deploy
41-
component: kotsadm-migrations
42-
git-tag: ${{ inputs.tag }}
43-
arch: ${{ matrix.runner.arch }}
24+
# build-migrations-melange-packages:
25+
# needs: [validate-tag]
26+
# strategy:
27+
# fail-fast: true
28+
# matrix:
29+
# runner: [
30+
# {name: ubuntu-latest, arch: amd64},
31+
# {name: arm64-runner-set, arch: arm64}
32+
# ]
33+
# runs-on: ${{ matrix.runner.name }}
34+
# steps:
35+
# - uses: actions/checkout@v4
36+
# - uses: ./.github/actions/build-custom-melange-package
37+
# with:
38+
# context: migrations/deploy
39+
# component: kotsadm-migrations
40+
# git-tag: v1.124.15-ec.0
41+
# arch: ${{ matrix.runner.arch }}
4442

45-
build-migrations:
46-
runs-on: ubuntu-latest
47-
needs: [build-migrations-melange-packages]
48-
steps:
49-
- uses: actions/checkout@v4
50-
- uses: ./.github/actions/build-custom-image-with-apko
51-
with:
52-
context: migrations/deploy
53-
component: kotsadm-migrations
54-
git-tag: ${{ inputs.tag }}
55-
image-name: index.docker.io/kotsadm/kotsadm-migrations:${{ inputs.tag }}
56-
registry-username: ${{ secrets.DOCKERHUB_USER }}
57-
registry-password: ${{ secrets.DOCKERHUB_PASSWORD }}
43+
# build-migrations:
44+
# runs-on: ubuntu-latest
45+
# needs: [build-migrations-melange-packages]
46+
# steps:
47+
# - uses: actions/checkout@v4
48+
# - uses: ./.github/actions/build-custom-image-with-apko
49+
# with:
50+
# context: migrations/deploy
51+
# component: kotsadm-migrations
52+
# git-tag: v1.124.15-ec.0
53+
# image-name: index.docker.io/kotsadm/kotsadm-migrations:v1.124.15-ec.0
54+
# registry-username: ${{ secrets.DOCKERHUB_USER }}
55+
# registry-password: ${{ secrets.DOCKERHUB_PASSWORD }}
5856

59-
build-kurl-proxy-melange-packages:
60-
needs: [validate-tag]
61-
strategy:
62-
fail-fast: true
63-
matrix:
64-
runner: [
65-
{name: ubuntu-latest, arch: amd64},
66-
{name: arm64-runner-set, arch: arm64}
67-
]
68-
runs-on: ${{ matrix.runner.name }}
69-
steps:
70-
- uses: actions/checkout@v4
71-
- uses: ./.github/actions/build-custom-melange-package
72-
with:
73-
context: kurl_proxy/deploy
74-
component: kurl-proxy
75-
git-tag: ${{ inputs.tag }}
76-
arch: ${{ matrix.runner.arch }}
57+
# build-kurl-proxy-melange-packages:
58+
# needs: [validate-tag]
59+
# strategy:
60+
# fail-fast: true
61+
# matrix:
62+
# runner: [
63+
# {name: ubuntu-latest, arch: amd64},
64+
# {name: arm64-runner-set, arch: arm64}
65+
# ]
66+
# runs-on: ${{ matrix.runner.name }}
67+
# steps:
68+
# - uses: actions/checkout@v4
69+
# - uses: ./.github/actions/build-custom-melange-package
70+
# with:
71+
# context: kurl_proxy/deploy
72+
# component: kurl-proxy
73+
# git-tag: v1.124.15-ec.0
74+
# arch: ${{ matrix.runner.arch }}
7775

78-
build-kurl-proxy:
79-
runs-on: ubuntu-latest
80-
needs: [build-kurl-proxy-melange-packages]
81-
steps:
82-
- uses: actions/checkout@v4
83-
- uses: ./.github/actions/build-custom-image-with-apko
84-
with:
85-
context: kurl_proxy/deploy
86-
component: kurl-proxy
87-
git-tag: ${{ inputs.tag }}
88-
image-name: index.docker.io/kotsadm/kurl-proxy:${{ inputs.tag }}
89-
registry-username: ${{ secrets.DOCKERHUB_USER }}
90-
registry-password: ${{ secrets.DOCKERHUB_PASSWORD }}
76+
# build-kurl-proxy:
77+
# runs-on: ubuntu-latest
78+
# needs: [build-kurl-proxy-melange-packages]
79+
# steps:
80+
# - uses: actions/checkout@v4
81+
# - uses: ./.github/actions/build-custom-image-with-apko
82+
# with:
83+
# context: kurl_proxy/deploy
84+
# component: kurl-proxy
85+
# git-tag: v1.124.15-ec.0
86+
# image-name: index.docker.io/kotsadm/kurl-proxy:v1.124.15-ec.0
87+
# registry-username: ${{ secrets.DOCKERHUB_USER }}
88+
# registry-password: ${{ secrets.DOCKERHUB_PASSWORD }}
9189

92-
build-kotsadm-melange-packages:
93-
needs: [validate-tag]
94-
strategy:
95-
fail-fast: true
96-
matrix:
97-
runner: [
98-
{name: ubuntu-latest, arch: amd64},
99-
{name: arm64-runner-set, arch: arm64}
100-
]
101-
runs-on: ${{ matrix.runner.name }}
102-
steps:
103-
- uses: actions/checkout@v4
104-
- uses: ./.github/actions/build-custom-melange-package
105-
with:
106-
context: deploy
107-
component: kotsadm
108-
git-tag: ${{ inputs.tag }}
109-
arch: ${{ matrix.runner.arch }}
90+
# build-kotsadm-melange-packages:
91+
# needs: [validate-tag]
92+
# strategy:
93+
# fail-fast: true
94+
# matrix:
95+
# runner: [
96+
# {name: ubuntu-latest, arch: amd64},
97+
# {name: arm64-runner-set, arch: arm64}
98+
# ]
99+
# runs-on: ${{ matrix.runner.name }}
100+
# steps:
101+
# - uses: actions/checkout@v4
102+
# - uses: ./.github/actions/build-custom-melange-package
103+
# with:
104+
# context: deploy
105+
# component: kotsadm
106+
# git-tag: v1.124.15-ec.0
107+
# arch: ${{ matrix.runner.arch }}
110108

111-
build-kotsadm:
112-
runs-on: ubuntu-latest
113-
needs: [build-kotsadm-melange-packages]
114-
steps:
115-
- uses: actions/checkout@v4
116-
- uses: ./.github/actions/build-custom-image-with-apko
117-
with:
118-
context: deploy
119-
component: kotsadm
120-
git-tag: ${{ inputs.tag }}
121-
image-name: index.docker.io/kotsadm/kotsadm:${{ inputs.tag }}
122-
registry-username: ${{ secrets.DOCKERHUB_USER }}
123-
registry-password: ${{ secrets.DOCKERHUB_PASSWORD }}
109+
# build-kotsadm:
110+
# runs-on: ubuntu-latest
111+
# needs: [build-kotsadm-melange-packages]
112+
# steps:
113+
# - uses: actions/checkout@v4
114+
# - uses: ./.github/actions/build-custom-image-with-apko
115+
# with:
116+
# context: deploy
117+
# component: kotsadm
118+
# git-tag: v1.124.15-ec.0
119+
# image-name: index.docker.io/kotsadm/kotsadm:v1.124.15-ec.0
120+
# registry-username: ${{ secrets.DOCKERHUB_USER }}
121+
# registry-password: ${{ secrets.DOCKERHUB_PASSWORD }}
124122

125123
tag-helm-chart:
126124
runs-on: ubuntu-latest
127-
needs: [build-migrations, build-kurl-proxy, build-kotsadm]
125+
# needs: [build-migrations, build-kurl-proxy, build-kotsadm]
128126
steps:
129127
- name: Checkout Chart
130128
uses: actions/checkout@v4
@@ -135,5 +133,5 @@ jobs:
135133

136134
- name: Tag Chart
137135
run: |
138-
git tag "${{ inputs.tag }}+${GITHUB_SHA:0:7}"
139-
git push origin "${{ inputs.tag }}+${GITHUB_SHA:0:7}"
136+
git tag "v1.124.15-ec.0+${GITHUB_SHA:0:7}"
137+
git push origin "v1.124.15-ec.0+${GITHUB_SHA:0:7}"

0 commit comments

Comments
 (0)