Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
feat(releasing): Add release script to CDC (#36)
Browse files Browse the repository at this point in the history
We will have to cut releases.
  • Loading branch information
fpacifici authored Jun 11, 2021
1 parent 5070a2e commit 2e0420b
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .craft.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
minVersion: "0.21.1"

github:
owner: getsentry
repo: cdc
# TODO: Add a changelog
changelogPolicy: none

artifactProvider:
name: none

preReleaseCommand: ''

targets:
- name: github
- id: release
name: docker
source: us.gcr.io/sentryio/cdc
target: getsentry/cdc
- id: latest
name: docker
source: us.gcr.io/sentryio/cdc
target: getsentry/cdc
targetFormat: '{{{target}}}:latest'
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: release

on:
workflow_dispatch:
inputs:
version:
description: Version to release
required: true
force:
description: Force a release even when there are release-blockers (optional)
required: false

jobs:
release:
runs-on: ubuntu-latest
name: 'Release a new version'
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.GH_RELEASE_PAT }}

- name: Prepare release
uses: getsentry/action-prepare-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_PAT }}
with:
version: ${{ github.event.inputs.version }}
force: ${{ github.event.inputs.force }}

0 comments on commit 2e0420b

Please sign in to comment.