Skip to content

Workflow file for this run

name: End-to-End Testing

Check failure on line 1 in .github/workflows/e2e.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/e2e.yml

Invalid workflow file

`e2e-oci` is not a valid event name
on:
pull_request:
push:
branches:
- main
- 'releases/*'
e2e-oci:
name: Publish/Verify (OCI)
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
packages: write
services:
zot:
image: ghcr.io/project-zot/zot-linux-amd64:v2.0.0
ports:
- 5000:5000
env:
REGISTRY: zot:5000
IMAGE_NAME: ${{ github.repository }}
steps:
- name: Checkout
id: checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Build Dockerfile
run: |
cat <<EOF > Dockerfile
FROM scratch
COPY README.md .
EOF
- name: Build and push container image
id: push
uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56 # v5.1.0
with:
context: .
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
- name: Attest image
id: attest-action
uses: ./
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true