From 3f1e735fc19cd430e98916e94498a93962de4063 Mon Sep 17 00:00:00 2001 From: nichlaes Date: Tue, 23 Jan 2024 14:27:30 +0100 Subject: [PATCH] fixed workflow error --- .github/workflows/test-docker.yml | 40 ++++++++++++++++--------------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/.github/workflows/test-docker.yml b/.github/workflows/test-docker.yml index aabd41653..750af2bec 100644 --- a/.github/workflows/test-docker.yml +++ b/.github/workflows/test-docker.yml @@ -7,24 +7,26 @@ on: - 381-create-docker-containers-for-client-lib-and-runner jobs: - publish-docker-image: - name: Publish Docker image + get-version: + name: Get version runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Install jq - run: sudo apt-get install -y jq - - name: get version - id: vars - run: | - version=`cat ./client/package.json | jq -r '.version'` - echo "version=$version" >> $GITHUB_OUTPUT - - name: publish docker image - uses: ./.github/workflows/docker.yml - with: - registry: ghcr.io - image-name: into-cps-association/test-image - version: ${{ steps.vars.outputs.version }} - dockerfile: libms.dockerfile \ No newline at end of file + - name: Install jq + run: sudo apt-get install -y jq + - name: get version + id: vars + run: | + version=`cat ./client/package.json | jq -r '.version'` + echo "version=$version" >> $GITHUB_OUTPUT + outputs: + version: ${{ steps.vars.outputs.version }} + + publish-docker-image: + name: Publish Docker image + needs: get-version + uses: ./.github/workflows/docker.yml + with: + registry: ghcr.io + image-name: into-cps-association/test-image + version: ${{ needs.get-version.outputs.version }} + dockerfile: libms.dockerfile \ No newline at end of file