Skip to content

e2e

e2e #248

Workflow file for this run

---
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'
env:
IMAGE_NAME: testing-e2e-xoxoo
steps:
- name: Checkout code
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- name: Setup golang
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: '1.22'
check-latest: true
cache: true
- name: Build test image
uses: redhat-actions/buildah-build@7a95fa7ee0f02d552a32753e7414641a04307056 # v2.13
id: test-image
with:
base-image: scratch
image: ${{ env.IMAGE_NAME }}
tags: "1h"
oci: true
- name: Push test image to local registry
uses: redhat-actions/push-to-registry@9986a6552bc4571882a4a67e016b17361412b4df # v2.7.1
with:
image: ${{ steps.test-image.outputs.image }}
tags: 1h
registry: ttl.sh
tls-verify: false
- name: Run e2e tests
run: go run mage.go E2ETest
env:
TEST_IMAGE: "ttl.sh/${{ env.IMAGE_NAME }}:1h"