diff --git a/.craft.yml b/.craft.yml new file mode 100644 index 00000000..24493e95 --- /dev/null +++ b/.craft.yml @@ -0,0 +1,26 @@ +minVersion: "2.21.4" +changelog: + policy: auto +versioning: + policy: calver +artifactProvider: + name: none +statusProvider: + name: github + config: + contexts: + - 'build-arm64' + - 'build-amd64' + - 'Create multi-platform manifest' +preReleaseCommand: "" +targets: + - id: release + name: docker + source: ghcr.io/getsentry/launchpad + target: ghcr.io/getsentry/launchpad + - id: latest + name: docker + source: ghcr.io/getsentry/launchpad + target: ghcr.io/getsentry/launchpad + targetFormat: '{{{target}}}:latest' + - name: github \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..290968c1 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,44 @@ +name: self-hosted release + +on: + workflow_dispatch: + inputs: + version: + description: Version to release (or "auto") + required: false + force: + description: Force a release even when there are release-blockers (optional) + required: false + + schedule: + # We want the release to be at 9-10am Pacific Time + # We also want it to be 1 hour before the on-prem release + - cron: "0 17 15 * *" + +permissions: + contents: write + pull-requests: write + +jobs: + release: + runs-on: ubuntu-latest + name: "Release a new launchpad version" + steps: + - name: Get auth token + id: token + uses: actions/create-github-app-token@v2 + with: + app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }} + private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }} + - uses: actions/checkout@v6 + with: + token: ${{ steps.token.outputs.token }} + fetch-depth: 0 + - name: Prepare release + uses: getsentry/craft@v2 # v2 + env: + GITHUB_TOKEN: ${{ steps.token.outputs.token }} + with: + version: ${{ github.event.inputs.version }} + force: ${{ github.event.inputs.force }} + calver: true \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..5ddad421 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1 @@ +# Changelog \ No newline at end of file