Skip to content

Commit eee03cb

Browse files
committed
github workflow
1 parent a375e7e commit eee03cb

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Build and Publish arm64 Docker Image
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*' # Matches tags like v1.0.0, v2.1.3, etc.
7+
8+
jobs:
9+
publish-docker-image:
10+
runs-on: ubuntu-24.04-arm
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v3
15+
16+
- name: Set up Docker Buildx
17+
uses: docker/setup-buildx-action@v3
18+
19+
- name: Log in to GitHub Container Registry
20+
uses: docker/login-action@v3
21+
with:
22+
registry: ghcr.io
23+
username: ${{ github.repository_owner }}
24+
password: ${{ secrets.GITHUB_TOKEN }}
25+
26+
- name: Build and Push Docker Image (ARM64)
27+
uses: docker/build-push-action@v5
28+
with:
29+
context: .
30+
push: true
31+
# Cache to speed up builds
32+
cache-from: type=gha
33+
cache-to: type=gha,mode=max
34+
tags: |
35+
ghcr.io/envirobly/rsync:${{ github.ref_name }}
36+
ghcr.io/envirobly/rsync:${{ github.sha }}

0 commit comments

Comments
 (0)