File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Build Docker Image
22
33on :
4- push :
5- branches :
6- - main
7- tags :
8- - " v*.*.*"
4+ release :
5+ types : [published]
96
107permissions :
118 contents : read
129 packages : write
1310
1411env :
1512 REGISTRY : ghcr.io
16- IMAGE_NAME : tillesser/powerplanner
13+ IMAGE_NAME : Wiwaltill/power-planner
1714
1815jobs :
1916 build :
2017 runs-on : ubuntu-latest
2118
2219 steps :
23- - name : Checkout
20+ - name : Checkout release source
2421 uses : actions/checkout@v4
2522
26- - name : Set up QEMU
27- uses : docker/setup-qemu-action@v3
28-
2923 - name : Set up Docker Buildx
3024 uses : docker/setup-buildx-action@v3
3125
@@ -36,12 +30,16 @@ jobs:
3630 username : ${{ github.actor }}
3731 password : ${{ secrets.GITHUB_TOKEN }}
3832
39- - name : Build and push image
33+ - name : Extract release tag
34+ id : meta
35+ run : echo "tag=${GITHUB_REF_NAME}" >> "$GITHUB_OUTPUT"
36+
37+ - name : Build and push Docker image
4038 uses : docker/build-push-action@v6
4139 with :
4240 context : .
4341 push : true
44- platforms : linux/amd64,linux/arm64
42+ platforms : linux/amd64
4543 tags : |
46- ghcr.io/tillesser/powerplanner :latest
47- ghcr.io/tillesser/powerplanner :${{ github.ref_name }}
44+ ghcr.io/wiwaltill/power-planner :latest
45+ ghcr.io/wiwaltill/power-planner :${{ steps.meta.outputs.tag }}
You can’t perform that action at this time.
0 commit comments