@@ -39,32 +39,36 @@ jobs:
39
39
permissions :
40
40
contents : read
41
41
packages : write
42
- if : ${{ matrix.condition }}
43
42
44
43
steps :
45
44
- name : Checkout repository
46
45
uses : actions/checkout@v3
47
46
with :
48
47
ref : ${{ github.event.inputs.commit_sha }}
48
+ if : ${{ matrix.condition }}
49
49
50
50
- name : Set up Go
51
51
uses : actions/setup-go@v4
52
52
with :
53
53
go-version : ' 1.23'
54
+ if : ${{ matrix.condition }}
54
55
55
56
- name : Set up Docker Buildx
56
57
uses : docker/setup-buildx-action@v3
58
+ if : ${{ matrix.condition }}
57
59
58
60
- name : Log in to the Container registry
59
61
uses : docker/login-action@v3
60
62
with :
61
63
registry : ${{ env.REGISTRY }}
62
64
username : ${{ github.actor }}
63
65
password : ${{ secrets.GITHUB_TOKEN }}
66
+ if : ${{ matrix.condition }}
64
67
65
68
- name : Set Tag Name
66
69
id : set_tag
67
70
run : echo "tag=${{ github.event.inputs.release_tag || github.event.inputs.commit_sha }}" >> $GITHUB_OUTPUT
71
+ if : ${{ matrix.condition }}
68
72
69
73
- name : Build and push Docker image
70
74
uses : docker/build-push-action@v6
75
79
tags : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/${{ matrix.service }}:${{ steps.set_tag.outputs.tag }}
76
80
cache-from : type=gha,scope=${{ matrix.service }}
77
81
cache-to : type=gha,mode=max,scope=${{ matrix.service }}
82
+ if : ${{ matrix.condition }}
0 commit comments