-
Notifications
You must be signed in to change notification settings - Fork 58
34 lines (30 loc) · 1019 Bytes
/
test-docker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# workflow that runs on this current branch
on:
push:
branches:
- 381-create-docker-containers-for-client-lib-and-runner
jobs:
get_version:
name: Get version
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install jq
run: sudo apt-get install -y jq
- name: get version
id: get_version
run: |
version=`cat ./client/package.json | jq -r '.version'`
echo "version=$version" >> $GITHUB_OUTPUT
outputs:
version: ${{ steps.get_version.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