@@ -67,25 +67,29 @@ jobs:
67
67
name : ${{ matrix.target.jobName }}
68
68
runs-on : ubuntu-latest
69
69
needs : discover
70
- if : fromJSON(needs.discover.outputs.hits).oci-images.publish != '{}'
71
70
strategy :
72
71
matrix :
73
- target : ${{ fromJSON(needs.discover.outputs.hits). oci-images.publish }}
72
+ target : ${{ contains( fromJSON(needs.discover.outputs.hits), 'oci-images') && fromJSON(needs.discover.outputs.hits). oci-images.publish || fromJSON('["dummy-target"]') }}
74
73
steps :
75
74
- name : Configure AWS Credentials
75
+ if : matrix.target != 'dummy-target'
76
76
uses :
aws-actions/[email protected]
77
77
with :
78
78
role-to-assume : ${{ env.AWS_ROLE_ARN }}
79
79
aws-region : ${{ env.AWS_REGION }}
80
80
- name : Login to Amazon ECR
81
+ if : matrix.target != 'dummy-target'
81
82
id : login-ecr
82
83
uses : aws-actions/amazon-ecr-login@v1
83
84
- uses : nixbuild/nix-quick-install-action@v25
85
+ if : matrix.target != 'dummy-target'
84
86
- uses : nixbuild/nixbuild-action@v17
87
+ if : matrix.target != 'dummy-target'
85
88
with :
86
89
nixbuild_ssh_key : ${{ secrets.SSH_PRIVATE_KEY }}
87
90
generate_summary_for : job
88
91
- uses : divnix/std-action/setup-discovery-ssh@main
92
+ if : matrix.target != 'dummy-target'
89
93
with :
90
94
ssh_key : ${{ secrets.SSH_PRIVATE_KEY }}
91
95
user_name : ${{ env.DISCOVERY_USER_NAME }}
95
99
run : |
96
100
echo commit: ${{ github.sha }}
97
101
- uses : divnix/std-action/run@main
102
+ if : matrix.target != 'dummy-target'
98
103
with : {ffBuildInstructions: true, remoteStore: "ssh-ng://eu.nixbuild.net"}
99
104
100
105
0 commit comments