Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Apps to DockerHub and Koyeb | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: | |
- main | |
jobs: | |
publish_landing: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: build | |
run: | | |
docker build . -t lordewan/0xzero-landing:latest | |
working-directory: ./apps/landing | |
- name: publish | |
run: | | |
docker login -u lordewan -p ${{ secrets.DOCKERHUB_TOKEN }} | |
docker push lordewan/0xzero-landing:latest | |
working-directory: ./apps/landing | |
- name: Install and configure the Koyeb CLI | |
uses: koyeb-community/install-koyeb-cli@v2 | |
with: | |
api_token: "${{ secrets.KOYEB_TOKEN }}" | |
github_token: "${{ secrets.GITHUB_TOKEN }}" | |
- name: Deploy to Koyeb | |
run: koyeb service redeploy mid-dorey/landing | |
# publish_app: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: checkout | |
# uses: actions/checkout@v3 | |
# - name: build | |
# run: | | |
# docker build . -t lordewan/0xzero-app:latest | |
# working-directory: ./apps/zkSchema | |
# - name: publish | |
# run: | | |
# docker login -u lordewan -p ${{ secrets.DOCKERHUB_TOKEN }} | |
# docker push lordewan/zkSchema:latest | |
# working-directory: ./apps/zkSchema | |
# - name: Install and configure the Koyeb CLI | |
# uses: koyeb-community/install-koyeb-cli@v2 | |
# with: | |
# api_token: "${{ secrets.KOYEB_TOKEN }}" | |
# github_token: "${{ secrets.GITHUB_TOKEN }}" | |
# - name: Deploy to Koyeb | |
# run: koyeb service redeploy passport/passport |