Compare commits
102 Commits
Author | SHA1 | Date | |
---|---|---|---|
69bbcad15b | |||
b4c00f94b0 | |||
a13a21ca68 | |||
bc73692c9c | |||
7cd99ec5f9 | |||
5a1eb308c8 | |||
54c9a9fcbd | |||
4c949d2448 | |||
2327ebf753 | |||
c9480280d7 | |||
25b806770e | |||
58b270a3b0 | |||
daeaacf9f1 | |||
a12660480b | |||
380a0edde2 | |||
350b30deb8 | |||
fa91af9346 | |||
b2405d1e94 | |||
56965e0770 | |||
52a99cb816 | |||
55ccd3baea | |||
f314eede47 | |||
ae072551ba | |||
3de460f98b | |||
a3b7569639 | |||
0e0dd3fd46 | |||
04bf7f182d | |||
65ba744aa1 | |||
b9f1e5c287 | |||
e1fd09c37e | |||
2d4dd5425b | |||
10c33d2b86 | |||
53b54589c6 | |||
226e407ffa | |||
a021602815 | |||
da897f1524 | |||
876b5dd69a | |||
2a6b4f6d63 | |||
d309a0913a | |||
5cba21f04d | |||
8483e80261 | |||
22ae07c07e | |||
7da6f533fd | |||
5879650bb5 | |||
ec5dfc77c2 | |||
7308bf40ed | |||
048d9e0dc9 | |||
8dde33afc9 | |||
f9ebe0e930 | |||
4958cce4bb | |||
6a7f3e4b47 | |||
219cfcf83c | |||
6cfa2d4cda | |||
a023dc2db8 | |||
c73bfecccf | |||
7720676c88 | |||
78c4c97158 | |||
0d9343fdb3 | |||
7dc3d359db | |||
403de130b3 | |||
59bc095538 | |||
91f1737489 | |||
1fbe27bca4 | |||
93927be6b3 | |||
4ae36fcc13 | |||
a1c2dd7846 | |||
a0affe3b1b | |||
e876bd1bf0 | |||
8ccf88f288 | |||
c091d70ef6 | |||
d563003aed | |||
f7a330b160 | |||
22f7e136db | |||
0a2d821433 | |||
91a49afff5 | |||
d17b884447 | |||
00494f0ccd | |||
d1f8704ce3 | |||
138cd58024 | |||
4db33da5e3 | |||
9bec80e52d | |||
d1f1ba4867 | |||
d9536bcf04 | |||
38b288c40c | |||
09dc78deaf | |||
b91b534067 | |||
836b9003e8 | |||
e00880a5e0 | |||
78d310fce1 | |||
d957ee81ad | |||
5adbf02c90 | |||
716c7e5331 | |||
7b4fa36a1f | |||
299cc889f0 | |||
52bdd4d05f | |||
9026f3412c | |||
3936f1cd58 | |||
065c19863d | |||
55d9707d24 | |||
4250455f66 | |||
d54807cce9 | |||
2b7e1fec89 |
74
.gitea/workflows/reuse_test.yaml
Normal file
74
.gitea/workflows/reuse_test.yaml
Normal file
@ -0,0 +1,74 @@
|
||||
name: 'Reusable test job'
|
||||
description: 'Test for images'
|
||||
|
||||
outputs:
|
||||
result:
|
||||
description: "Result of test (success|failure)"
|
||||
value: ${{ jobs.example_job.outputs.output1 }}
|
||||
inputs:
|
||||
image: string
|
||||
branch: string
|
||||
url: string
|
||||
repo: string
|
||||
|
||||
runs:
|
||||
using: 'composite'
|
||||
steps:
|
||||
- name: Update apt
|
||||
uses: https://gitea.basealt.ru/actions/init-alt-env@v1
|
||||
- name: Install requires
|
||||
run: |
|
||||
echo "apt-get install -y python3-module-tomli python3-module-jinja2 podman buildah"
|
||||
apt-get install -y python3-module-tomli python3-module-jinja2 podman buildah
|
||||
echo "apt-get install -y qemu-user-static-binfmt-aarch64 qemu-user-static-binfmt-arm qemu-user-static-binfmt-ppc"
|
||||
apt-get install -y qemu-user-static-binfmt-aarch64 qemu-user-static-binfmt-arm qemu-user-static-binfmt-ppc
|
||||
- name: Check out current repo
|
||||
uses: https://gitea.com/actions/checkout@v4
|
||||
with:
|
||||
repository: ${{ gitea.server_url }}/${{ inputs.repo }}/gitea-image-forge
|
||||
- name: Get test for image
|
||||
run: |
|
||||
if test -f ${{ gitea.workspace }}/org/$IM/test; then testscript=$(cat ${{ gitea.workspace }}/org/$IM/test); else testscript=""; fi
|
||||
echo "TEST=$testscript" >> ${GITHUB_ENV}
|
||||
echo "test script: $testscript"
|
||||
env:
|
||||
IM: ${{ inputs.image }}
|
||||
BR: ${{ inputs.branch }}
|
||||
- name: Run test
|
||||
id: test-script
|
||||
if: ${{ env.TEST != '' }}
|
||||
continue-on-error: true
|
||||
uses: https://gitea.basealt.ru/actions/podman-run-action@v2
|
||||
with:
|
||||
image: ${{ inputs.url }}/${{ inputs.repo }}/${{ inputs.image }}:${{ inputs.branch }}
|
||||
options: --rm
|
||||
run: ${{ env.TEST }}
|
||||
- name: Run special test
|
||||
id: special-test
|
||||
if: ${{ env.TEST == '' }}
|
||||
continue-on-error: true
|
||||
run: |
|
||||
if [[ IM = 'alt/distroless-true' ]]; then podman run --rm $URL/$REPO/$IM:$BR true; fi
|
||||
if [[ IM = 'alt/distroless-gotop' ]]; then podman run --rm $URL/$REPO/$IM:$BR --version; fi
|
||||
env:
|
||||
IM: ${{ inputs.image }}
|
||||
BR: ${{ inputs.branch }}
|
||||
URL: ${{ inputs.url }}
|
||||
- name: Send notification if test crashed
|
||||
if: ${{ steps.test-script.outcome == 'failure' || steps.special-test.outcome == 'failure' }}
|
||||
run: |
|
||||
issueid=$(curl -X 'GET' "$URL/api/v1/repos/$REPO/gitea-image-forge/issues?state=all&type=issues&page=1&limit=1&token=$T" -H 'accept: application/json' -s | jq '.[].number' -r)
|
||||
body="Building of image $IM for branch $BR is failed"
|
||||
curl -X 'POST' "$URL/api/v1/repos/$REPO/gitea-image-forge/issues/$issueid/comments?token=$T" -H 'accept: application/json' -H 'Content-Type: application/json' -d "{ \"body\": \"$body\" }" -s
|
||||
echo "notification about test error is sent to issue $issueid"
|
||||
env:
|
||||
T: ${{ secrets.TOKEN }}
|
||||
URL: ${{ gitea.server_url }}
|
||||
IM: ${{ inputs.image }}
|
||||
BR: ${{ inputs.branch }}
|
||||
REPO: ${{ inputs.repo }}
|
||||
- name: Finish test
|
||||
run: echo "finish test for image $IM on branch $BR"
|
||||
env:
|
||||
IM: ${{ inputs.image }}
|
||||
BR: ${{ inputs.branch }}
|
142
.gitea/workflows/wf.yaml
Normal file
142
.gitea/workflows/wf.yaml
Normal file
@ -0,0 +1,142 @@
|
||||
name: Building alt images
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*_*/*'
|
||||
|
||||
jobs:
|
||||
build-process:
|
||||
runs-on: alt-latest
|
||||
outputs:
|
||||
branch: ${{ env.BRANCH }}
|
||||
image: ${{ env.IMAGE }}
|
||||
url: ${{ env.URL }}
|
||||
repo: ${{ env.REPO }}
|
||||
buildres: ${{ steps.build-script.outcome }}
|
||||
test: ${{ env.TEST }}
|
||||
steps:
|
||||
- name: Check workspace
|
||||
run: |
|
||||
repourl=$(echo $GU | cut -d '/' -f 3)
|
||||
echo "URL=$repourl" >> ${GITHUB_ENV}
|
||||
reponame=$(echo $GR | cut -d '/' -f 1)
|
||||
echo "REPO=$reponame" >> ${GITHUB_ENV}
|
||||
env:
|
||||
GU: ${{ gitea.server_url }}
|
||||
GR: ${{ gitea.repository }}
|
||||
- name: Update apt
|
||||
uses: https://gitea.basealt.ru/actions/init-alt-env@v1
|
||||
- name: Install requires
|
||||
run: |
|
||||
echo "apt-get install -y python3-module-tomli python3-module-jinja2 podman buildah jq"
|
||||
apt-get install -y python3-module-tomli python3-module-jinja2 podman buildah jq
|
||||
echo "apt-get install -y qemu-user-static-binfmt-aarch64 qemu-user-static-binfmt-arm qemu-user-static-binfmt-ppc"
|
||||
apt-get install -y qemu-user-static-binfmt-aarch64 qemu-user-static-binfmt-arm qemu-user-static-binfmt-ppc
|
||||
- name: Check out current repo
|
||||
uses: https://gitea.com/actions/checkout@v4
|
||||
- name: Login podman gitea
|
||||
run: |
|
||||
echo "podman login ${{ env.URL }}"
|
||||
podman login --username $P_USER --password $P_PASS ${{ env.URL }}
|
||||
env:
|
||||
P_USER: ${{ secrets.PODMAN_USER }}
|
||||
P_PASS: ${{ secrets.PODMAN_PASS }}
|
||||
- name: Check files in the repository
|
||||
run: |
|
||||
ls -a ${{ gitea.workspace }}
|
||||
- name: Parse target branch and tag from events context, save to env
|
||||
env:
|
||||
EV: ${{ toJson(gitea.event) }}
|
||||
run: |
|
||||
echo $EV | jq '.ref' -r | sed "s/refs\/tags\//BRANCH=/g" | cut -d '_' -f 1
|
||||
echo $EV | jq '.ref' -r | sed "s/refs\/tags\//BRANCH=/g" | cut -d '_' -f 1 >> ${GITHUB_ENV}
|
||||
localimage=$(echo $EV | jq '.ref' -r | sed 's/refs\/tags\///g' | cut -d '_' -f 2)
|
||||
echo "IMAGE=$localimage" >> ${GITHUB_ENV}
|
||||
echo "IMAGE=$localimage"
|
||||
- name: Get test for image
|
||||
run: |
|
||||
if test -f ${{ gitea.workspace }}/org/$IM/test; then testscript=$(cat ${{ gitea.workspace }}/org/$IM/test); else testscript=""; fi
|
||||
echo "TEST=$testscript" >> ${GITHUB_ENV}
|
||||
env:
|
||||
IM: ${{ env.IMAGE }}
|
||||
BR: ${{ env.BRANCH }}
|
||||
- name: Run building script
|
||||
id: build-script
|
||||
run: |
|
||||
echo "build.py -i $IM -b $BR"
|
||||
if [[ $BR == 'sisyphus' ]]; then ${{ gitea.workspace }}/build.py -i $IM -b $BR --skip-arches arm; else ${{ gitea.workspace }}/build.py -i $IM -b $BR; fi
|
||||
env:
|
||||
IM: ${{ env.IMAGE }}
|
||||
BR: ${{ env.BRANCH }}
|
||||
continue-on-error: true
|
||||
test-process:
|
||||
needs: build-process
|
||||
runs-on: alt-latest
|
||||
outputs:
|
||||
testres: ${{ steps.test-script.outcome == 'success' || steps.special-test.outcome == 'success' }}
|
||||
steps:
|
||||
- name: Update apt
|
||||
uses: https://gitea.basealt.ru/actions/init-alt-env@v1
|
||||
- name: Install requires
|
||||
run: |
|
||||
echo "apt-get install -y python3-module-tomli python3-module-jinja2 podman buildah"
|
||||
apt-get install -y python3-module-tomli python3-module-jinja2 podman buildah
|
||||
echo "apt-get install -y qemu-user-static-binfmt-aarch64 qemu-user-static-binfmt-arm qemu-user-static-binfmt-ppc"
|
||||
apt-get install -y qemu-user-static-binfmt-aarch64 qemu-user-static-binfmt-arm qemu-user-static-binfmt-ppc
|
||||
- name: Run test
|
||||
id: test-script
|
||||
if: ${{ needs.build-process.outputs.buildres == 'success' && needs.build-process.outputs.test != '' }}
|
||||
continue-on-error: true
|
||||
uses: https://gitea.basealt.ru/actions/podman-run-action@v2
|
||||
with:
|
||||
image: ${{ needs.build-process.outputs.url }}/${{ needs.build-process.outputs.repo }}/${{ needs.build-process.outputs.image }}:${{ needs.build-process.outputs.branch }}
|
||||
options: --rm
|
||||
run: ${{ needs.build_process.outputs.test }}
|
||||
- name: Run special test
|
||||
id: special-test
|
||||
if: ${{ needs.build-process.outputs.buildres == 'success' && needs.build-process.outputs.test == '' }}
|
||||
continue-on-error: true
|
||||
run: |
|
||||
if [[ IM = 'alt/distroless-true' ]]; then podman run --rm $URL/$REPO/$IM:$BR true; fi
|
||||
if [[ IM = 'alt/distroless-gotop' ]]; then podman run --rm $URL/$REPO/$IM:$BR --version; fi
|
||||
env:
|
||||
IM: ${{ needs.build-process.outputs.image }}
|
||||
BR: ${{ needs.build-process.outputs.branch }}
|
||||
URL: ${{ needs.build-process.outputs.url }}
|
||||
REPO: ${{ needs.build-process.outputs.repo }}
|
||||
finish_process:
|
||||
needs: [ build-process, test-process ]
|
||||
runs-on: alt-latest
|
||||
steps:
|
||||
- name: Update apt
|
||||
uses: https://gitea.basealt.ru/actions/init-alt-env@v1
|
||||
- name: Install requires
|
||||
run: |
|
||||
echo "apt-get install -y curl jq"
|
||||
apt-get install -y curl jq
|
||||
- name: Delete event tag
|
||||
run: |
|
||||
tagname=$(echo $EV | jq '.ref' -r | sed "s/refs\/tags\///g")
|
||||
curl -X 'DELETE' "https://$URL/api/v1/repos/$REPO/gitea-image-forge/tags/$tagname?token=$T" -H 'accept: application/json' -s
|
||||
echo "tag $BR_$IM is deleted"
|
||||
env:
|
||||
T: ${{ secrets.TOKEN }}
|
||||
URL: ${{ needs.build-process.outputs.url }}
|
||||
REPO: ${{ needs.build-process.outputs.repo }}
|
||||
IM: ${{ needs.build-process.outputs.image }}
|
||||
BR: ${{ needs.build-process.outputs.branch }}
|
||||
EV: ${{ toJson(gitea.event) }}
|
||||
continue-on-error: true
|
||||
- name: Send comment to issue for notification
|
||||
run: |
|
||||
issueid=$(curl -X 'GET' "https://$URL/api/v1/repos/$REPO/gitea-image-forge/issues?state=all&type=issues&page=1&limit=1&token=$T" -H 'accept: application/json' -s | jq '.[].number' -r)
|
||||
if [[ ${{ needs.build-process.outputs.buildres }} = 'success' ]] && [[ ${{ needs.test-process.outputs.testres }} ]]; then body="Building of image $IM for branch $BR finished success"; else body="Testing of image $IM for branch $BR is failed"; fi
|
||||
if [[ ${{ needs.build-process.outputs.buildres }} != 'success' ]]; then body="Building of image $IM for branch $BR is failed"; fi
|
||||
curl -X 'POST' "https://$URL/api/v1/repos/$REPO/gitea-image-forge/issues/$issueid/comments?token=$T" -H 'accept: application/json' -H 'Content-Type: application/json' -d "{ \"body\": \"$body\" }" -s
|
||||
echo "notification is sent to issue $issueid"
|
||||
env:
|
||||
T: ${{ secrets.TOKEN }}
|
||||
URL: ${{ needs.build-process.outputs.url }}
|
||||
REPO: ${{ needs.build-process.outputs.repo }}
|
||||
IM: ${{ needs.build-process.outputs.image }}
|
||||
BR: ${{ needs.build-process.outputs.branch }}
|
169
.gitea/workflows/wf_full2.yaml
Normal file
169
.gitea/workflows/wf_full2.yaml
Normal file
@ -0,0 +1,169 @@
|
||||
name: Full building alt images v2
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*#*'
|
||||
|
||||
jobs:
|
||||
build-process:
|
||||
runs-on: alt-p10
|
||||
outputs:
|
||||
branch: ${{ env.BRANCH }}
|
||||
org: ${{ env.ORG }}
|
||||
url: ${{ env.URL }}
|
||||
repo: ${{ env.REPO }}
|
||||
buildres: ${{ steps.build-script.outcome }}
|
||||
steps:
|
||||
- name: Check workspace
|
||||
run: |
|
||||
repourl=$(echo $GU | cut -d '/' -f 3)
|
||||
echo "URL=$repourl" >> ${GITHUB_ENV}
|
||||
echo $repourl
|
||||
reponame=$(echo $GR | cut -d '/' -f 1)
|
||||
echo "REPO=$reponame" >> ${GITHUB_ENV}
|
||||
echo $reponame
|
||||
env:
|
||||
GU: ${{ gitea.server_url }}
|
||||
GR: ${{ gitea.repository }}
|
||||
- name: Update apt
|
||||
uses: https://gitea.basealt.ru/actions/init-alt-env@v1
|
||||
- name: Install requires
|
||||
run: |
|
||||
echo "apt-get install -y python3-module-tomli python3-module-jinja2 podman buildah jq curl"
|
||||
apt-get install -y python3-module-tomli python3-module-jinja2 podman buildah jq curl
|
||||
echo "apt-get install -y qemu-user-static-binfmt-aarch64 qemu-user-static-binfmt-arm qemu-user-static-binfmt-ppc"
|
||||
apt-get install -y qemu-user-static-binfmt-aarch64 qemu-user-static-binfmt-arm qemu-user-static-binfmt-ppc
|
||||
- name: Check out current repo
|
||||
uses: https://gitea.com/actions/checkout@v4
|
||||
- name: Parse target branch and tag from events context, save to env
|
||||
env:
|
||||
EV: ${{ toJson(gitea.event) }}
|
||||
run: |
|
||||
echo $EV | jq '.ref' -r | sed "s/refs\/tags\//BRANCH=/g" | cut -d '#' -f 1
|
||||
echo $EV | jq '.ref' -r | sed "s/refs\/tags\//BRANCH=/g" | cut -d '#' -f 1 >> ${GITHUB_ENV}
|
||||
org=$(echo $EV | jq '.ref' -r | sed 's/refs\/tags\///g' | cut -d '#' -f 2)
|
||||
echo "ORG=$org" >> ${GITHUB_ENV}
|
||||
echo "ORG=$org"
|
||||
- name: Login podman gitea
|
||||
run: |
|
||||
echo "podman login ${{ env.URL }}"
|
||||
podman login --username $P_USER --password $P_PASS ${{ env.URL }}
|
||||
env:
|
||||
P_USER: ${{ secrets.PODMAN_USER }}
|
||||
P_PASS: ${{ secrets.PODMAN_PASS }}
|
||||
- name: Run building script
|
||||
id: build-script
|
||||
run: |
|
||||
build_args="-b $BR"
|
||||
if [[ $BR == 'sisyphus' ]]; then build_args="$build_args --skip-arches arm"; fi
|
||||
if [[ $ORG == 'k8s' ]]; then build_args="$build_args --overwrite-organization $ORG-$BR"; fi
|
||||
echo "build.py $build_args"
|
||||
${{ gitea.workspace }}/build.py $build_args -i alt/distroless-true
|
||||
env:
|
||||
ORG: ${{ env.ORG }}
|
||||
BR: ${{ env.BRANCH }}
|
||||
continue-on-error: true
|
||||
- name: Send notification if build crashed
|
||||
if: ${{ steps.build-script.outcome != 'success' }}
|
||||
run: |
|
||||
issueid=$(curl -X 'GET' "$URL/api/v1/repos/$REPO/gitea-image-forge/issues?state=all&type=issues&page=1&limit=1&token=$T" -H 'accept: application/json' -s | jq '.[].number' -r)
|
||||
body="Building images finish with some errors."
|
||||
curl -X 'POST' "$URL/api/v1/repos/$REPO/gitea-image-forge/issues/$issueid/comments?token=$T" -H 'accept: application/json' -H 'Content-Type: application/json' -d "{ \"body\": \"$body\" }" -s
|
||||
echo "notification about test error is sent to issue $issueid"
|
||||
env:
|
||||
T: ${{ secrets.TOKEN }}
|
||||
BR: ${{ env.BRANCH }}
|
||||
URL: ${{ gitea.server_url }}
|
||||
REPO: ${{ env.REPO }}
|
||||
- name: Delete event tag
|
||||
run: |
|
||||
tagname=$(echo $EV | jq '.ref' -r | sed "s/refs\/tags\///g")
|
||||
curl -X 'DELETE' "$URL/api/v1/repos/$REPO/gitea-image-forge/tags/$tagname?token=$T" -H 'accept: application/json' -s
|
||||
echo "tag $tagname is deleted"
|
||||
env:
|
||||
T: ${{ secrets.TOKEN }}
|
||||
BR: ${{ env.BRANCH }}
|
||||
URL: ${{ gitea.server_url }}
|
||||
REPO: ${{ env.REPO }}
|
||||
EV: ${{ toJson(gitea.event) }}
|
||||
test-process-alt:
|
||||
needs: build-process
|
||||
if: ${{ needs.build-process.outputs.buildres == 'success' && needs.build-process.outputs.org == 'alt' }}
|
||||
runs-on: alt-p10
|
||||
strategy:
|
||||
max-parallel: 5
|
||||
matrix:
|
||||
images:
|
||||
- apache2
|
||||
- base
|
||||
- buildpack-deps
|
||||
- buildpack-deps-curl
|
||||
- buildpack-deps-scm
|
||||
- devel
|
||||
- distroless-base
|
||||
- distroless-builder
|
||||
- distroless-devel
|
||||
- distroless-gotop
|
||||
- distroless-static
|
||||
- distroless-true
|
||||
- etcd
|
||||
- gitea
|
||||
- nginx
|
||||
- node
|
||||
- prometheus
|
||||
- python
|
||||
- registry
|
||||
- ruby
|
||||
- systemd
|
||||
- unit
|
||||
steps:
|
||||
- name: Update apt
|
||||
uses: ${{ gitea.server_url }}/actions/init-alt-env@v1
|
||||
- name: Install requires
|
||||
run: |
|
||||
echo "apt-get install -y python3-module-tomli python3-module-jinja2 podman buildah curl jq"
|
||||
apt-get install -y python3-module-tomli python3-module-jinja2 podman buildah curl jq
|
||||
- uses: https://gitea.basealt.ru/actions/image-forge-test@v1
|
||||
continue-on-error: true
|
||||
with:
|
||||
image: ${{ matrix.images }}
|
||||
branch: ${{ needs.build-process.outputs.branch }}
|
||||
org: ${{ needs.build-process.outputs.org }}
|
||||
url: ${{ needs.build-process.outputs.url }}
|
||||
repo: ${{ needs.build-process.outputs.repo }}
|
||||
test-process-k8s:
|
||||
needs: build-process
|
||||
if: ${{ needs.build-process.outputs.buildres == 'success' && needs.build-process.outputs.org == 'k8s' }}
|
||||
runs-on: alt-p10
|
||||
strategy:
|
||||
max-parallel: 5
|
||||
matrix:
|
||||
images:
|
||||
- cert-manager-cainjector
|
||||
- cert-manager-controller
|
||||
- cert-manager-webhook
|
||||
- coredns
|
||||
- etcd
|
||||
- flannel
|
||||
- flannel-cni-plugin
|
||||
- kube-apiserver
|
||||
- kube-controller-manager
|
||||
- kube-proxy
|
||||
- kube-scheduler
|
||||
- pause
|
||||
- trivy-node-collector
|
||||
steps:
|
||||
- name: Update apt
|
||||
uses: ${{ gitea.server_url }}/actions/init-alt-env@v1
|
||||
- name: Install requires
|
||||
run: |
|
||||
echo "apt-get install -y python3-module-tomli python3-module-jinja2 podman buildah curl jq"
|
||||
apt-get install -y python3-module-tomli python3-module-jinja2 podman buildah curl jq
|
||||
- uses: https://gitea.basealt.ru/actions/image-forge-test@v1
|
||||
continue-on-error: true
|
||||
with:
|
||||
image: ${{ matrix.images }}
|
||||
branch: ${{ needs.build-process.outputs.branch }}
|
||||
org: ${{ needs.build-process.outputs.org }}
|
||||
url: ${{ needs.build-process.outputs.url }}
|
||||
repo: ${{ needs.build-process.outputs.repo }}
|
23
.gitea/workflows/wf_test.yaml
Normal file
23
.gitea/workflows/wf_test.yaml
Normal file
@ -0,0 +1,23 @@
|
||||
name: Test job
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'test*'
|
||||
|
||||
jobs:
|
||||
test-job:
|
||||
runs-on: alt-latest
|
||||
steps:
|
||||
- name: Parse target branch
|
||||
run: |
|
||||
echo $EV
|
||||
echo ${{ github.action_path }}
|
||||
echo ${{ github.action_ref }}
|
||||
echo ${{ github.event }}
|
||||
echo ${{ github.event_name }}
|
||||
echo ${{ github.event_path }}
|
||||
echo ${{ github.triggering_actor }}
|
||||
echo ${{ github.workspace }}
|
||||
echo ${{ github.ref_name }}
|
||||
env:
|
||||
EV: ${{ toJson(gitea.event) }}
|
1
org/k8s/cert-manager-cainjector/test
Normal file
1
org/k8s/cert-manager-cainjector/test
Normal file
@ -0,0 +1 @@
|
||||
cainjector --help
|
1
org/k8s/cert-manager-controller/test
Normal file
1
org/k8s/cert-manager-controller/test
Normal file
@ -0,0 +1 @@
|
||||
controller --help
|
1
org/k8s/cert-manager-webhook/test
Normal file
1
org/k8s/cert-manager-webhook/test
Normal file
@ -0,0 +1 @@
|
||||
webhook --help
|
1
org/k8s/coredns/test
Normal file
1
org/k8s/coredns/test
Normal file
@ -0,0 +1 @@
|
||||
coredns --version
|
1
org/k8s/etcd/test
Normal file
1
org/k8s/etcd/test
Normal file
@ -0,0 +1 @@
|
||||
etcd --version
|
1
org/k8s/flannel/test
Normal file
1
org/k8s/flannel/test
Normal file
@ -0,0 +1 @@
|
||||
flanneld --version
|
1
org/k8s/kube-apiserver/test
Normal file
1
org/k8s/kube-apiserver/test
Normal file
@ -0,0 +1 @@
|
||||
kube-apiserver --version
|
1
org/k8s/kube-controller-manager/test
Normal file
1
org/k8s/kube-controller-manager/test
Normal file
@ -0,0 +1 @@
|
||||
kube-controller-manager --version
|
1
org/k8s/kube-proxy/test
Normal file
1
org/k8s/kube-proxy/test
Normal file
@ -0,0 +1 @@
|
||||
kube-proxy --version
|
1
org/k8s/kube-scheduler/test
Normal file
1
org/k8s/kube-scheduler/test
Normal file
@ -0,0 +1 @@
|
||||
kube-scheduler --version
|
1
org/k8s/trivy-node-collector/test
Normal file
1
org/k8s/trivy-node-collector/test
Normal file
@ -0,0 +1 @@
|
||||
node-collector --help
|
Reference in New Issue
Block a user