Skip to content

Commit c3dd016

Browse files
Add GitHub Actions workflow to build and push Docker image to GHCR
1 parent 176c8dc commit c3dd016

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Build and push Docker image
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
build-and-push:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
packages: write
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
18+
- name: Log in to GHCR
19+
uses: docker/login-action@v3
20+
with:
21+
registry: ghcr.io
22+
username: ${{ github.actor }}
23+
password: ${{ secrets.GITHUB_TOKEN }}
24+
25+
- name: Set up Docker Buildx
26+
uses: docker/setup-buildx-action@v3
27+
28+
- name: Build and push
29+
uses: docker/build-push-action@v6
30+
with:
31+
context: .
32+
push: true
33+
platforms: linux/arm64
34+
tags: ghcr.io/nabil-boutaleb-sf/tickflow:latest
35+
cache-from: type=gha
36+
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)