Skip to content

Commit f3e92ba

Browse files
committed
refactor: no matrix
1 parent d3bd139 commit f3e92ba

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/shared-build-and-deploy.yaml

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
name: Build and deploy
2+
13
on:
24
workflow_call:
35
inputs:
@@ -16,15 +18,11 @@ on:
1618
env:
1719
RESOURCE_GROUP: rg-poorclaresarundel
1820
REGISTRY: ghcr.io
19-
IMAGE_NAME: ${{ github.repository }}
2021
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
2122

2223
jobs:
2324
build:
2425
runs-on: ubuntu-latest
25-
strategy:
26-
matrix:
27-
services: [{ "imageName": "node-service" }]
2826
permissions:
2927
contents: read
3028
packages: write
@@ -38,7 +36,7 @@ jobs:
3836
- name: Set sha-short and image-name environment variables
3937
id: vars
4038
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:]')
4240
echo "image_name=$image_name" >> $GITHUB_OUTPUT
4341
sha_short=$(echo "$(git rev-parse --short HEAD)" | tr '[:upper:]' '[:lower:]')
4442
echo "sha_short=$sha_short" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)