Skip to content

Commit 472a24f

Browse files
pfaffmanclaude
andcommitted
Add GitHub Actions workflow to build and push Docker image to ghcr.io
Publishes ghcr.io/literatecomputing/mail-receiver:release on every push to main. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 590c4b7 commit 472a24f

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

‎.github/workflows/docker.yml‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Docker
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build-and-push:
10+
runs-on: ubuntu-latest
11+
12+
permissions:
13+
contents: read
14+
packages: write
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Log in to GitHub Container Registry
20+
uses: docker/login-action@v3
21+
with:
22+
registry: ghcr.io
23+
username: ${{ github.actor }}
24+
password: ${{ secrets.GITHUB_TOKEN }}
25+
26+
- name: Build and push
27+
uses: docker/build-push-action@v6
28+
with:
29+
context: .
30+
push: true
31+
tags: ghcr.io/literatecomputing/mail-receiver:release

0 commit comments

Comments
 (0)