Skip to content

Commit 670ca4e

Browse files
authored
Merge pull request #601 from powerapi-ng/ci/container-build-args
ci: Set package source `build-args` when building the container images
2 parents 5dea99b + 0b430e4 commit 670ca4e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,5 @@ jobs:
6464
provenance: false
6565
load: true
6666
tags: localbuild/powerapi:sha-${{ github.sha }}
67+
build-args: |
68+
POWERAPI_INSTALL_METHOD=local

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ jobs:
110110
docker-image:
111111
name: Publish Docker image
112112
runs-on: ubuntu-latest
113-
needs: [pre-checks]
113+
needs: [pre-checks, publish-python-package]
114114
permissions:
115115
contents: read
116116
packages: write
@@ -154,6 +154,9 @@ jobs:
154154
platforms: linux/amd64,linux/arm64
155155
tags: ${{ steps.meta.outputs.tags }}
156156
labels: ${{ steps.meta.outputs.labels }}
157+
build-args: |
158+
POWERAPI_INSTALL_METHOD=pypi
159+
POWERAPI_VERSION=${{ steps.meta.outputs.version }}
157160
158161
github-release:
159162
name: Publish GitHub release

0 commit comments

Comments
 (0)