Skip to content

Commit

Permalink
rollback: v0.15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
luislhl committed Apr 5, 2024
1 parent 46d94fe commit 91df166
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 26 deletions.
39 changes: 21 additions & 18 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: deploy

on:
push:
branches: [main, dev]
branches: [main, dev, rollback/v0.15.0]
tags: ['v*.*.*']

env:
Expand Down Expand Up @@ -43,6 +43,9 @@ jobs:
elif [[ "${{github.base_ref}}" == "dev" || "${{github.ref}}" == "refs/heads/dev" ]]; then
echo "Setting dev environment"
echo "environment=dev" >> $GITHUB_OUTPUT
elif [[ "${{github.base_ref}}" == "rollback/v0.15.0" || "${{github.ref}}" == "refs/heads/rollback/v0.15.0" ]]; then
echo "Setting dev environment"
echo "environment=dev" >> $GITHUB_OUTPUT
fi
deploy:
Expand Down Expand Up @@ -150,23 +153,23 @@ jobs:
HEALTHCHECK_WALLET_SERVICE_DB_ENABLED: True
HEALTHCHECK_ELASTICSEARCH_ENABLED: True
HEALTHCHECK_REDIS_ENABLED: True
- name: Deploy Daemons Dev
if: ${{ needs.init.outputs.environment == 'dev' }}
run: |
timestamp=`date +%s`; \
export DOCKER_IMAGE_TAG=dev-${{ github.sha }}-$timestamp
make deploy-daemons
- name: Deploy Daemons Testnet
if: ${{ needs.init.outputs.environment == 'testnet' }}
run: |
timestamp=`date +%s`; \
export DOCKER_IMAGE_TAG=testnet-${{ github.sha }}-$timestamp
make deploy-daemons
- name: Deploy Daemons Mainnet
if: ${{ needs.init.outputs.environment == 'mainnet' }}
run: |
export DOCKER_IMAGE_TAG=${GITHUB_REF#refs/*/}
make deploy-daemons
# - name: Deploy Daemons Dev
# if: ${{ needs.init.outputs.environment == 'dev' }}
# run: |
# timestamp=`date +%s`; \
# export DOCKER_IMAGE_TAG=dev-${{ github.sha }}-$timestamp
# make deploy-daemons
# - name: Deploy Daemons Testnet
# if: ${{ needs.init.outputs.environment == 'testnet' }}
# run: |
# timestamp=`date +%s`; \
# export DOCKER_IMAGE_TAG=testnet-${{ github.sha }}-$timestamp
# make deploy-daemons
# - name: Deploy Daemons Mainnet
# if: ${{ needs.init.outputs.environment == 'mainnet' }}
# run: |
# export DOCKER_IMAGE_TAG=${GITHUB_REF#refs/*/}
# make deploy-daemons
- name: Clean
run: |
rm /home/runner/.docker/config.json
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"dependencies": {
"@apidevtools/swagger-cli": "^4.0.4",
"serverless": "^2.72.4",
"serverless-api-gateway-caching": "^1.7.2",
"serverless-api-gateway-caching": "^1.10.3",
"serverless-api-gateway-throttling": "^1.2.2",
"serverless-better-credentials": "^1.2.1",
"serverless-plugin-aws-alerts": "^1.7.4"
Expand Down

0 comments on commit 91df166

Please sign in to comment.