Skip to content

Commit

Permalink
disable build on deploy from tag
Browse files Browse the repository at this point in the history
  • Loading branch information
dennybaa committed Mar 25, 2021
1 parent 1a4400d commit 43e2036
Showing 1 changed file with 2 additions and 36 deletions.
38 changes: 2 additions & 36 deletions .github/workflows/deploy-apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,45 +64,11 @@ jobs:
runner: ${{ env.RUNNER }}
isTag: ${{ steps.regex-match.outputs.group1 != '' }}

build-images:
name: Build and Push Docker Images
runs-on: [self-hosted, MAIN]
needs: pre
if: ${{ needs.pre.outputs.isTag == 'true' }}

# Required services
services:
postgres:
image: postgres:10.4
ports:
- 5432:5432

steps:
- uses: actions/checkout@v2

- name: setup-env
run: |
echo ZKSYNC_HOME=$(pwd) >> $GITHUB_ENV
echo CI=1 >> $GITHUB_ENV
echo $(pwd)/bin >> $GITHUB_PATH
- name: init
run: |
cargo sqlx --version || cargo install --version=0.2.0 sqlx-cli
zk
zk run yarn
cp etc/tokens/{test,localhost}.json
zk run verify-keys unpack
zk db basic-setup
- name: update-images
run: |
docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASSWORD }}
zk docker push rust
zk docker push nginx
deploy:
name: Deploy Apps
runs-on: [k8s, deployer, "${{ needs.pre.outputs.runner }}"]
needs: [pre, build-images]
needs: pre
if: ${{ needs.pre.outputs.isTag == 'true' }}

container:
image: dysnix/kubectl:v1.16-gcloud
Expand Down

0 comments on commit 43e2036

Please sign in to comment.