Skip to content

Commit

Permalink
workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
nenadmitt committed Mar 12, 2024
1 parent 61c4a45 commit 4b5bc3b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/production_build.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Build Staging Backend
name: Build develop offchain gateway
on:
push:
branches: [gateway-production]

jobs:
build-staging-backend:
build-production-gateway:
name: Service deployment
runs-on: ubuntu-latest

Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/production_deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
name: Deploy offchain subnames api
name: Deploy production gateway
on:
workflow_dispatch:
inputs:
version:
description: restart
default: v1.0.0
required: true

jobs:
restart-offchain-subnames-api:
name: Restart offchain subnames api
name: Deploy production gateway
runs-on: ubuntu-latest

steps:
Expand All @@ -19,6 +14,7 @@ jobs:
host: ${{ secrets.SERVER_URL_PROD }}
username: ${{ secrets.SERVER_USER }}
key: ${{ secrets.SERVER_KEY }}
passphrase: ${{ secrets.PASSPHASE }}
script: |
docker stop offchain-gateway
docker rm offchain-gateway
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/staging_build.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Build Staging Backend
name: Build develop gateway
on:
push:
branches: [develop]

jobs:
build-staging-backend:
build-develop-gateway:
name: Service deployment
runs-on: ubuntu-latest

Expand Down

0 comments on commit 4b5bc3b

Please sign in to comment.