Skip to content

Commit ca924ce

Browse files
committed
ci: add release-please workflow and update docker publish triggers
1 parent 8e719e7 commit ca924ce

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

.github/workflows/docker-publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
branches: [ "main", "master" ]
66
tags: [ "v*", "release-*" ]
7+
release:
8+
types: [ published ]
79
workflow_dispatch: {}
810

911
env:
@@ -45,6 +47,7 @@ jobs:
4547
type=ref,event=pr
4648
type=ref,event=tag
4749
type=sha
50+
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' || github.event_name == 'release' }}
4851
4952
- name: Build and push
5053
uses: docker/build-push-action@v6
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Release Please
2+
3+
on:
4+
push:
5+
branches: [ "main", "master" ]
6+
workflow_dispatch: {}
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
12+
jobs:
13+
release-please:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Release Please
17+
uses: googleapis/release-please-action@v4
18+
with:
19+
release-type: simple
20+
package-name: imapbackup
21+
# Uses the default GITHUB_TOKEN automatically
22+
token: ${{ secrets.APP_TOKEN }}

0 commit comments

Comments
 (0)