Skip to content

Commit 520751f

Browse files
committed
remove environment from validate
1 parent 2dd578f commit 520751f

File tree

1 file changed

+3
-30
lines changed

1 file changed

+3
-30
lines changed

.github/workflows/release.yaml

Lines changed: 3 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ on:
1515
- database-exporter
1616

1717
push:
18+
branches:
19+
- 'SRE-1067/concordium-client-release-flow'
1820
tags:
1921
- '*.*.*-*-rc'
2022
- '*.*.*-*-alpha'
@@ -45,7 +47,7 @@ env:
4547
\"docker-mainnet\": \"concordium/mainnet-node:${VERSION}\"
4648
}'
4749
REGISTRY: docker.io
48-
SERVICE: "${{ inputs.service }}"
50+
SERVICE: "0.0.1-0-rc"
4951

5052
permissions:
5153
id-token: write
@@ -98,35 +100,6 @@ jobs:
98100
echo "s3_arns=${{ env.S3_ARN_TEMPLATES }}" >> $GITHUB_OUTPUT
99101
echo "docker_tags=${{ env.DOCKER_TAGS_TEMPLATES }}" >> $GITHUB_OUTPUT
100102
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-
130103
build-static-binaries:
131104
needs: [validate-preconditions]
132105
runs-on: ubuntu-latest-8core

0 commit comments

Comments
 (0)