-
Notifications
You must be signed in to change notification settings - Fork 29
58 lines (49 loc) · 1.46 KB
/
e2e.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
53
54
55
56
57
58
---
name: e2e
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
e2e:
runs-on: ubuntu-latest
permissions:
id-token: write
if: github.repository == 'kubernetes-sigs/release-sdk'
steps:
- name: Checkout code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Setup golang
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: '1.22'
check-latest: true
cache: true
- name: Run local registry
run: podman run -d -p 5000:5000 registry:2
- name: Build test image
uses: redhat-actions/buildah-build@7a95fa7ee0f02d552a32753e7414641a04307056 # v2.13
id: test-image
with:
base-image: scratch
image: test
oci: true
- name: Push test image to local registry
id: push
uses: redhat-actions/push-to-registry@5ed88d269cf581ea9ef6dd6806d01562096bee9c # v2.8
with:
image: ${{ steps.test-image.outputs.image }}
registry: localhost:5000
tls-verify: false
- name: Generate test file
id: test-file
run: |
echo "release sign test" > ${{ runner.temp }}/test-file-${{ github.run_id }}
- name: Run e2e tests
run: go run mage.go E2ETest
with:
path: ${{ runner.temp }}/test-file-${{ github.run_id }}