-
Notifications
You must be signed in to change notification settings - Fork 189
32 lines (30 loc) · 852 Bytes
/
build.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
name: Build Docker Image
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push application.server
uses: docker/build-push-action@v2
with:
context: application/server
push: true
tags: togettoyou/fabric-realty.server:latest
- name: Build and push application.web
uses: docker/build-push-action@v2
with:
context: application/web
push: true
tags: togettoyou/fabric-realty.web:latest