Commit f3e92ba 1 parent d3bd139 commit f3e92ba Copy full SHA for f3e92ba
File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change
1
+ name : Build and deploy
2
+
1
3
on :
2
4
workflow_call :
3
5
inputs :
16
18
env :
17
19
RESOURCE_GROUP : rg-poorclaresarundel
18
20
REGISTRY : ghcr.io
19
- IMAGE_NAME : ${{ github.repository }}
20
21
BRANCH_NAME : ${{ github.head_ref || github.ref_name }}
21
22
22
23
jobs :
23
24
build :
24
25
runs-on : ubuntu-latest
25
- strategy :
26
- matrix :
27
- services : [{ "imageName": "node-service" }]
28
26
permissions :
29
27
contents : read
30
28
packages : write
38
36
- name : Set sha-short and image-name environment variables
39
37
id : vars
40
38
run : |
41
- image_name=$(echo "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/${{ matrix.services.imageName }} " | tr '[:upper:]' '[:lower:]')
39
+ image_name=$(echo "${{ env.REGISTRY }}/${{ github.repository }}/node-service " | tr '[:upper:]' '[:lower:]')
42
40
echo "image_name=$image_name" >> $GITHUB_OUTPUT
43
41
sha_short=$(echo "$(git rev-parse --short HEAD)" | tr '[:upper:]' '[:lower:]')
44
42
echo "sha_short=$sha_short" >> $GITHUB_OUTPUT
You can’t perform that action at this time.
0 commit comments