-
Notifications
You must be signed in to change notification settings - Fork 6
36 lines (36 loc) · 1.07 KB
/
Copy pathbuild.yml
File metadata and controls
36 lines (36 loc) · 1.07 KB
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
name: Docker Publish
on:
push:
branches:
- master
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: build-push docker hub
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: sbegaudeau/spring-react-sample
tags: latest
- name: Build push Heroku
uses: docker/build-push-action@v1
with:
username: ${{ secrets.HEROKU_USERNAME }}
password: ${{ secrets.HEROKU_PASSWORD }}
registry: registry.heroku.com
repository: spring-react-sample/web
tags: latest
- name: Build push Github Packages
uses: docker/build-push-action@v1
with:
registry: docker.pkg.github.com
repository: ${{ github.repository }}/server
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
tag_with_ref: true
tags: latest