Skip to content

Commit

Permalink
fixed workflow error
Browse files Browse the repository at this point in the history
  • Loading branch information
nichlaes committed Jan 23, 2024
1 parent 002f5dd commit 3f1e735
Showing 1 changed file with 21 additions and 19 deletions.
40 changes: 21 additions & 19 deletions .github/workflows/test-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
- 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

0 comments on commit 3f1e735

Please sign in to comment.