Skip to content

Commit 5379a56

Browse files
author
Labby AI
committed
Add Docker publishing workflow
1 parent a0efae6 commit 5379a56

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

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

0 commit comments

Comments
 (0)