Deploy manual #3
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: Deploy manual | |
on: | |
workflow_dispatch: | |
jobs: | |
deploy: | |
name: Manual deploy | |
runs-on: ubuntu-latest | |
env: | |
TURBO_TEAM: ${{ vars.TURBO_TEAM }} | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Install node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Login to DockerHub | |
run: docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Install dependencies | |
uses: ./actions/yarnCache | |
- name: Build the images | |
run: docker build -t chatsift/chatsift-next:latest -f ./Dockerfile . | |
- name: Tag all | |
run: yarn turbo run tag-docker | |
- name: Push to DockerHub | |
run: docker image push --all-tags chatsift/chatsift-next |