Skip to content

Commit

Permalink
fix: πŸ› The release version number is wrong
Browse files Browse the repository at this point in the history
βœ… Closes: #77
  • Loading branch information
Kennynauh committed Jan 9, 2024
1 parent c9e9e59 commit 9824489
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Build Docker image
run: |
latest_version=$(curl -sL https://api.github.com/repos/dataswap/messagehub/releases | jq -r ".[0].tag_name")
latest_version=$(curl -sL https://api.github.com/repos/dataswap/explorer/releases | jq -r ".[0].tag_name")
mv ./.env.example.json ./.env.json
sed -i 's/"messageHubUrl": "http:\/\/localhost:3000"/"messageHubUrl": "http:\/\/${{ secrets.MESSAGEHUB_SERVER }}"/' ./.env.json
sudo docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/explorer:${latest_version} .
Expand All @@ -37,7 +37,7 @@ jobs:
script: |
sudo apt-get update
sudo apt-get install -y jq
latest_version=$(curl -sL https://api.github.com/repos/dataswap/messagehub/releases | jq -r ".[0].tag_name")
latest_version=$(curl -sL https://api.github.com/repos/dataswap/explorer/releases | jq -r ".[0].tag_name")
echo ${latest_version}
container_id=$(sudo docker ps -a | grep "${{ vars.PORT}}" | awk -F " " '{print $1}')
Expand Down

0 comments on commit 9824489

Please sign in to comment.