Skip to content

Commit 4ce7b71

Browse files
committed
fix env variable in action
1 parent 0f10104 commit 4ce7b71

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/docker-publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
run: |
4040
PTX_VERSION=$(curl -s https://pypi.org/pypi/pretext/json | grep -oP '"version":\s*"\K[^"]+')
4141
echo "Latest pretext version: $PTX_VERSION"
42-
echo "ptxversion=$PTX_VERSION" >> $GITHUB_ENV
42+
echo "PTX_VERSION=$PTX_VERSION" >> $GITHUB_ENV
4343
4444
- name: Build and push base
4545
if: ${{ github.event.inputs.container == 'all' || github.event.inputs.container == 'base' || github.event.inputs.container == '' }}
@@ -49,15 +49,15 @@ jobs:
4949
context: .
5050
file: ./base/Dockerfile
5151
push: true
52-
tags: ${{ secrets.DOCKERHUB_USERNAME }}/pretext:${{ ptxversion }}
52+
tags: ${{ secrets.DOCKERHUB_USERNAME }}/pretext:${{ env.PTX_VERSION }}
5353

5454
- name: Build and push full
5555
if: ${{ github.event.inputs.container == 'all' || github.event.inputs.container == 'full' || github.event.inputs.container == '' }}
5656
uses: docker/build-push-action@v6
5757
with:
5858
platforms: linux/amd64,linux/arm64
5959
context: .
60-
build-args: BASE_IMAGE_TAG=${{ ptxversion }}
60+
build-args: BASE_IMAGE_TAG=${{ env.PTX_VERSION }}
6161
file: ./full/Dockerfile
6262
push: true
63-
tags: ${{ secrets.DOCKERHUB_USERNAME }}/pretext-full:${{ ptxversion }}
63+
tags: ${{ secrets.DOCKERHUB_USERNAME }}/pretext-full:${{ env.PTX_VERSION }}

0 commit comments

Comments
 (0)