mirror of
https://github.com/outbackdingo/proxmox-cloud-controller-manager.git
synced 2026-01-27 10:20:13 +00:00
55 lines
1.2 KiB
YAML
55 lines
1.2 KiB
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
jobs:
|
|
build-publish:
|
|
name: "Build image and publish"
|
|
timeout-minutes: 15
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
id-token: write
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Unshallow
|
|
run: git fetch --prune --unshallow
|
|
|
|
- name: Install Cosign
|
|
uses: sigstore/cosign-installer@v3.5.0
|
|
- name: Set up docker buildx
|
|
run: make docker-init
|
|
|
|
- name: Github registry login
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Build and push edge
|
|
timeout-minutes: 10
|
|
run: make images
|
|
env:
|
|
PUSH: "true"
|
|
TAG: "edge"
|
|
- name: Sign images
|
|
timeout-minutes: 4
|
|
run: make images-cosign
|
|
env:
|
|
TAG: "edge"
|
|
|
|
- name: Build and push
|
|
timeout-minutes: 10
|
|
run: make images
|
|
env:
|
|
PUSH: "true"
|
|
- name: Sign images
|
|
timeout-minutes: 4
|
|
run: make images-cosign
|