Skip to content

Commit

Permalink
Added deploy step from tag (#2367)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrst88 authored Jun 7, 2023
1 parent ad6b864 commit eea832c
Showing 1 changed file with 13 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,6 @@ jobs:
environment: ${{ inputs.environment }}
secrets:
github-token: ${{ secrets.ZKSYNC_ADMIN_BOT_ORG_REPO_WRITE }}
echo-vars:
needs: Setup
runs-on: [self-hosted, default, infra]
name: "echo vars"
steps:
- run:
echo "cluster - ${{ needs.setup.outputs.cluster }} \n"
echo "config-tag - ${{ needs.setup.outputs.config-tag }} \n"
echo "environment - ${{ needs.setup.outputs.environment }} \n"
echo "release-namespace - ${{ needs.setup.outputs.release-namespace }} \n"
echo "deployment- id - ${{ needs.setup.outputs.deployment-id }} \n"
echo "sha-short - ${{ needs.setup.outputs.sha-short }} \n"

update:
name: Update
Expand All @@ -53,19 +41,19 @@ jobs:
secrets:
github-token: ${{ secrets.ZKSYNC_ADMIN_BOT_ORG_REPO_WRITE }}

# deploy:
# name: Deploy
# uses: ./.github/workflows/deploy.yml
# needs: [setup, update]
# with:
# cluster: ${{ needs.setup.outputs.cluster }}
# environment: ${{ needs.setup.outputs.environment }}
# release-environment: ${{ needs.setup.outputs.release-environment }}
# release-namespace: ${{ needs.setup.outputs.release-namespace }}
# deployment-id: ${{ github.event.deployment.id }}
# image-tag: ${{ needs.setup.outputs.sha-short }}
# secrets:
# github-token: ${{ secrets.ZKSYNC_ADMIN_BOT_ORG_REPO_WRITE }}
deploy:
name: Deploy
uses: ./.github/workflows/deploy.yml
needs: [setup, update]
with:
cluster: ${{ needs.setup.outputs.cluster }}
environment: ${{ needs.setup.outputs.environment }}
release-environment: ${{ needs.setup.outputs.release-environment }}
release-namespace: ${{ needs.setup.outputs.release-namespace }}
deployment-id: ${{ github.event.deployment.id }}
image-tag: ${{ needs.setup.outputs.sha-short }}
secrets:
github-token: ${{ secrets.ZKSYNC_ADMIN_BOT_ORG_REPO_WRITE }}

# notify:
# runs-on: ubuntu-latest
Expand Down

0 comments on commit eea832c

Please sign in to comment.