File tree Expand file tree Collapse file tree 2 files changed +83
-0
lines changed
Expand file tree Collapse file tree 2 files changed +83
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Publish Latest Docker Image
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ paths :
8+ - " Dockerfile"
9+
10+ permissions :
11+ packages : write
12+ contents : read
13+
14+ jobs :
15+ publish-docker :
16+ name : Publish Latest Docker Image
17+ runs-on : ubuntu-latest
18+ steps :
19+ - name : Checkout
20+ uses : actions/checkout@v5
21+ - name : Set up QEMU
22+ uses : docker/setup-qemu-action@v3
23+ - name : Set up Docker Buildx
24+ uses : docker/setup-buildx-action@v3
25+ - name : Login to GitHub Container Registry
26+ uses : docker/login-action@v3
27+ with :
28+ registry : ghcr.io
29+ username : ${{ github.repository_owner }}
30+ password : ${{ secrets.GITHUB_TOKEN }}
31+ - name : Build and push
32+ uses : docker/build-push-action@v6
33+ with :
34+ context : .
35+ platforms : linux/amd64,linux/arm64
36+ push : true
37+ tags : ghcr.io/timescale/hermes/sandbox:latest
Original file line number Diff line number Diff line change 1+ name : Publish Docker Release
2+
3+ on :
4+ push :
5+ tags :
6+ - v*
7+
8+ permissions :
9+ packages : write
10+ contents : read
11+
12+ jobs :
13+ publish-docker :
14+ name : Publish Docker Images
15+ runs-on : ubuntu-latest
16+ steps :
17+ - name : Checkout
18+ uses : actions/checkout@v5
19+ - name : Docker meta
20+ id : meta
21+ uses : docker/metadata-action@v5
22+ with :
23+ images : |
24+ ghcr.io/timescale/hermes/sandbox
25+ tags : |
26+ type=semver,pattern={{version}}
27+ type=semver,pattern={{major}}.{{minor}}
28+ type=semver,pattern={{major}}
29+ - name : Set up QEMU
30+ uses : docker/setup-qemu-action@v3
31+ - name : Set up Docker Buildx
32+ uses : docker/setup-buildx-action@v3
33+ - name : Login to GitHub Container Registry
34+ uses : docker/login-action@v3
35+ with :
36+ registry : ghcr.io
37+ username : ${{ github.repository_owner }}
38+ password : ${{ secrets.GITHUB_TOKEN }}
39+ - name : Build and push
40+ uses : docker/build-push-action@v6
41+ with :
42+ context : .
43+ platforms : linux/amd64,linux/arm64
44+ push : true
45+ tags : ${{ steps.meta.outputs.tags }}
46+ labels : ${{ steps.meta.outputs.labels }}
You can’t perform that action at this time.
0 commit comments