-
Notifications
You must be signed in to change notification settings - Fork 120
38 lines (34 loc) · 930 Bytes
/
release.yml
File metadata and controls
38 lines (34 loc) · 930 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: deploy production
on:
push:
tags:
- v*.*.*
concurrency:
group: goreleaser
cancel-in-progress: true
jobs:
goreleaser:
uses: charmbracelet/meta/.github/workflows/goreleaser.yml@main
with:
go_version: stable
secrets:
docker_username: ${{ secrets.DOCKERHUB_USERNAME }}
docker_token: ${{ secrets.DOCKERHUB_TOKEN }}
goreleaser_key: ${{ secrets.GORELEASER_KEY }}
gh_pat: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
deploy:
name: Run deploy workflow
runs-on: ubuntu-latest
needs: [goreleaser]
steps:
- uses: benc-uk/workflow-dispatch@v1
with:
workflow: Update
repo: charmbracelet/infra-prod
ref: main
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
inputs: |
{
"app": "catwalk",
"image": "ghcr.io/charmbracelet/catwalk:${{ github.ref_name }}"
}