Skip to content

Commit 59af43b

Browse files
committed
Update docker-image.yml
1 parent 026f745 commit 59af43b

1 file changed

Lines changed: 12 additions & 14 deletions

File tree

.github/workflows/docker-image.yml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,25 @@
11
name: Build Docker Image
22

33
on:
4-
push:
5-
branches:
6-
- main
7-
tags:
8-
- "v*.*.*"
4+
release:
5+
types: [published]
96

107
permissions:
118
contents: read
129
packages: write
1310

1411
env:
1512
REGISTRY: ghcr.io
16-
IMAGE_NAME: tillesser/powerplanner
13+
IMAGE_NAME: Wiwaltill/power-planner
1714

1815
jobs:
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 }}

0 commit comments

Comments
 (0)