Skip to content

Commit

Permalink
[release] version 1.16.7
Browse files Browse the repository at this point in the history
  • Loading branch information
munishchouhan committed Jan 15, 2025
1 parent 879d24b commit 927c4ad
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 29 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,10 @@ jobs:
- name: Release
if: "contains(github.event.head_commit.message, '[release]')"
run: |
bash tag-and-push.sh
bash typespec/tag-and-push-docs.sh
env:
GRADLE_OPTS: '-Dorg.gradle.daemon=false'
AWS_ACCESS_KEY_ID: ${{secrets.TOWER_CI_AWS_ACCESS}}
AWS_SECRET_ACCESS_KEY: ${{secrets.TOWER_CI_AWS_SECRET}}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKER_PAT: ${{ secrets.DOCKER_PAT }}
QUAY_PAT: ${{ secrets.QUAY_PAT }}
GITHUB_TOKEN: ${{ secrets.GH_SEQERA_TOKEN }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}

- name: Publish tests report
if: failure()
Expand Down
10 changes: 0 additions & 10 deletions .github/workflows/typespec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,3 @@ jobs:
cd typespec
tsp install
tsp compile .
- name: Release
if: "contains(github.event.head_commit.message, '[release-docs]')"
run: |
bash typespec/tag-and-push-docs.sh
env:
GRADLE_OPTS: '-Dorg.gradle.daemon=false'
AWS_ACCESS_KEY_ID: ${{secrets.TOWER_CI_AWS_ACCESS}}
AWS_SECRET_ACCESS_KEY: ${{secrets.TOWER_CI_AWS_SECRET}}
GITHUB_TOKEN: ${{ secrets.GH_SEQERA_TOKEN }}
21 changes: 9 additions & 12 deletions typespec/tag-and-push-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,17 @@

set -e
set -x
SED=sed
[[ $(uname) == Darwin ]] && SED=gsed

RELEASE=${RELEASE:-$(git show -s --format='%s' | $SED -rn 's/.*\[(release)\].*/\1/p')}
if [[ $RELEASE ]]; then
npm install -g @typespec/compiler
npm install -g @typespec/compiler

cd typespec
cd typespec
tsp install
tsp compile .

tsp install
TAG=$(cat ../VERSION)

tsp compile .
docker build -t docker.io/hrma017/wave/openapi:$TAG .
echo "Build docker.io/wave/openapi:$TAG"

docker build -t 195996028523.dkr.ecr.eu-west-1.amazonaws.com/wave/wave-docs:$VERSION .

docker push 195996028523.dkr.ecr.eu-west-1.amazonaws.com/wave/wave-docs:$VERSION
fi
docker push docker.io/hrma017/wave/openapi:$TAG
echo "Pushed docker.io/hrma017/wave/openapi:$TAG"

0 comments on commit 927c4ad

Please sign in to comment.