generated from didinele/typescript-docker-monorepo
-
Notifications
You must be signed in to change notification settings - Fork 4
47 lines (37 loc) · 1.08 KB
/
deploy-next.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Deploy next
on:
workflow_run:
workflows:
- 'Quality Check'
branches:
- v3
types:
- completed
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
env:
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 2
- 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 changes
run: yarn turbo run tag-docker --filter '...[HEAD~1...HEAD~0]'
- name: Push to DockerHub
run: docker image push --all-tags chatsift/chatsift-next