File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments