Skip to content

Commit

Permalink
Merge pull request containerd#9955 from austinvazquez/release-1.6-bac…
Browse files Browse the repository at this point in the history
…kport-test-release-on-pr

[release/1.6] Backport test release on PR
  • Loading branch information
mxpv authored Mar 19, 2024
2 parents d68034c + b371313 commit 90c0160
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
on:
push:
branches:
- main
- "release/**"
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
pull_request:
branches:
- main
- "release/**"

name: Containerd Release

Expand All @@ -14,6 +21,7 @@ permissions: # added using https://github.com/step-security/secure-workflows
jobs:
check:
name: Check Signed Tag
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-20.04
timeout-minutes: 5
outputs:
Expand Down Expand Up @@ -57,7 +65,6 @@ jobs:
build:
name: Build Release Binaries
runs-on: ubuntu-20.04
needs: [check]
timeout-minutes: 30
strategy:
matrix:
Expand Down Expand Up @@ -87,10 +94,9 @@ jobs:

- uses: ./src/github.com/containerd/containerd/.github/actions/install-go

- name: Set env
- name: Set RELEASE_VER
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
shell: bash
env:
MOS: ubuntu-20.04
run: |
releasever=${{ github.ref }}
releasever="${releasever#refs/tags/}"
Expand Down Expand Up @@ -129,6 +135,7 @@ jobs:

release:
name: Create containerd Release
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
permissions:
contents: write
runs-on: ubuntu-20.04
Expand Down

0 comments on commit 90c0160

Please sign in to comment.