Merge pull request #374 from kubernetes-sigs/dependabot/go_modules/gi… #327
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: e2e | |
on: | |
push: | |
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: Run e2e tests | |
run: go run mage.go E2ETest |