We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6342435 commit 2207fafCopy full SHA for 2207faf
1 file changed
.github/workflows/push.yml
@@ -76,6 +76,23 @@ jobs:
76
outputs:
77
matrix: ${{ steps.upgrade.outputs.matrix }}
78
79
+ harbor-replication:
80
+ needs: push-postgres
81
+ runs-on: self-hosted-generic
82
+ steps:
83
+ - name: Trigger harbor replication
84
+ shell: bash
85
+ run: |
86
+ if ! [ '${{ secrets.GREENBONE_REGISTRY_REPLICATION_TOKEN }}' ]; then
87
+ echo "Secret GREENBONE_REGISTRY_REPLICATION_TOKEN does not exist"
88
+ exit 0
89
+ fi
90
+ curl --fail-with-body -X POST \
91
+ https://${{ vars.GREENBONE_REGISTRY }}/api/v2.0/replication/executions \
92
+ -u '${{ secrets.GREENBONE_REGISTRY_REPLICATION_USER }}:${{ secrets.GREENBONE_REGISTRY_REPLICATION_TOKEN }}' \
93
+ -H "Content-Type: application/json" \
94
+ -d '{"policy_id": 1}'
95
+
96
push-service:
97
needs: push-postgres
98
if: ${{ needs.push-postgres.outputs.matrix }}
0 commit comments