-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (30 loc) · 1.32 KB
/
docker-image.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
name: Docker Image CI
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build Backroll UI image
run: docker build ./src/ui --file src/ui/Dockerfile --tag dimsicloud/backroll-ui:0.2.${{ github.run_number }}
- name: Build Backroll Core image
run: docker build ./src/core --file src/core/Dockerfile --tag dimsicloud/backroll:0.2.${{ github.run_number }}
- name: Tag Backroll UI image to latest
run: docker tag dimsicloud/backroll-ui:0.2.${{ github.run_number }} dimsicloud/backroll-ui:latest
- name: Tag Backroll Core image to latest
run: docker tag dimsicloud/backroll:0.2.${{ github.run_number }} dimsicloud/backroll:latest
- name: Connect to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: push Backroll UI image
run: docker push dimsicloud/backroll-ui:0.2.${{ github.run_number }}
- name: push Backroll Core image
run: docker push dimsicloud/backroll:0.2.${{ github.run_number }}
- name: push Backroll UI latest image
run: docker push dimsicloud/backroll-ui:latest
- name: push Backroll Core latest image
run: docker push dimsicloud/backroll:latest