|
15 | 15 | - database-exporter |
16 | 16 |
|
17 | 17 | push: |
| 18 | + branches: |
| 19 | + - 'SRE-1067/concordium-client-release-flow' |
18 | 20 | tags: |
19 | 21 | - '*.*.*-*-rc' |
20 | 22 | - '*.*.*-*-alpha' |
|
45 | 47 | \"docker-mainnet\": \"concordium/mainnet-node:${VERSION}\" |
46 | 48 | }' |
47 | 49 | REGISTRY: docker.io |
48 | | - SERVICE: "${{ inputs.service }}" |
| 50 | + SERVICE: "0.0.1-0-rc" |
49 | 51 |
|
50 | 52 | permissions: |
51 | 53 | id-token: write |
@@ -98,35 +100,6 @@ jobs: |
98 | 100 | echo "s3_arns=${{ env.S3_ARN_TEMPLATES }}" >> $GITHUB_OUTPUT |
99 | 101 | echo "docker_tags=${{ env.DOCKER_TAGS_TEMPLATES }}" >> $GITHUB_OUTPUT |
100 | 102 |
|
101 | | - - name: Validate whether s3 artifacts are not existing |
102 | | - if: contains(fromJSON('["rc", "alpha"]'), steps.versions_derivation.outputs.release_type) |
103 | | - run: | |
104 | | - set +e |
105 | | - echo '${{ steps.render.outputs.s3_arns }}' | jq -r '. | to_entries[] | .value' | while read -r ARN; do |
106 | | - echo "Checking for object at: $ARN" |
107 | | - S3_OUTPUT=$(aws s3 ls "$ARN" --summarize 2>&1) |
108 | | - EXIT_CODE=$? |
109 | | - if [ $EXIT_CODE -eq 1 ]; then |
110 | | - echo "No object found for $ARN, proceeding." |
111 | | - elif [ $EXIT_CODE -eq 0 ]; then |
112 | | - echo "::error::item for $ARN already exists." |
113 | | - exit 1 |
114 | | - else |
115 | | - echo "::error::Unexpected exit code: $EXIT_CODE for $ARN." |
116 | | - exit 1 |
117 | | - fi |
118 | | - done |
119 | | - - name: Validate whether docker tags are not existing |
120 | | - if: contains(fromJSON('["rc", "alpha"]'), steps.versions_derivation.outputs.release_type) |
121 | | - run: | |
122 | | - echo '${{ steps.render.outputs.docker_tags }}' | jq -r '. | to_entries[] | .value' | while read -r TAG; do |
123 | | - echo "Checking for object at: $TAG" |
124 | | - if docker manifest inspect $TAG > /dev/null; then |
125 | | - echo "::error::$TAG already exists" |
126 | | - exit 1 |
127 | | - fi |
128 | | - done |
129 | | -
|
130 | 103 | build-static-binaries: |
131 | 104 | needs: [validate-preconditions] |
132 | 105 | runs-on: ubuntu-latest-8core |
|
0 commit comments