1
0
Fork 0
mirror of https://github.com/imjasonh/testoidc synced 2026-07-08 18:55:01 +00:00

Set up OIDC job

This commit is contained in:
Luke Hinds 2021-10-01 12:48:57 +01:00 committed by GitHub
parent 240f5cd012
commit 4b0ec935cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

33
.github/workflows/blank.yml vendored Normal file
View file

@ -0,0 +1,33 @@
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
permissions:
id-token: write # undocumented OIDC support.
packages: write
contents: read
env:
COSIGN_EXPERIMENTAL: "true"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Cosign
uses: sigstore/cosign-installer@main
- name: Build and Push container images
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
platforms: linux/amd64
push: true
tags: |
ghcr.io/lukehinds/cosign-oidc:${{ github.sha }}
- name: Sign image
run: |
cosign sign ghcr.io/lukehinds/cosign-oidc:${{ github.sha }}