generated from hackforla/.github-hackforla-base-repo-template
-
-
Notifications
You must be signed in to change notification settings - Fork 79
62 lines (61 loc) · 1.81 KB
/
all-merges.yaml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Build VMRS App
on:
pull_request:
branches: [development]
paths-ignore:
- "*.md"
jobs:
push-docker-container:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push client
id: client_build
uses: docker/build-push-action@v2
with:
context: ./client
file: ./client/Dockerfile.client
platforms: linux/amd64
target: client-production
stdin_open: true
push: true
tags: |
vrmsdeploy/vrms:client
- name: Client digest
run: echo ${{ steps.client_build.outputs.digest }}
- name: Build and push backend
id: backend_build
uses: docker/build-push-action@v2
with:
context: ./backend
file: ./backend/Dockerfile.api
platforms: linux/amd64
target: api-production
stdin_open: true
push: true
tags: |
vrmsdeploy/vrms:backend
- name: Backend digest
run: echo ${{ steps.backend_build.outputs.digest }}
- name: Build and push nginx
uses: docker/build-push-action@v2
id: nginx_build
with:
context: ./nginx
file: ./nginx/Dockerfile.nginx
platforms: linux/amd64
push: true
tags: |
vrmsdeploy/vrms:nginx
- name: Nginx digest
run: echo ${{ steps.nginx_build.outputs.digest }}