-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (32 loc) · 1.15 KB
/
docker.yml
File metadata and controls
38 lines (32 loc) · 1.15 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
37
38
name: Docker Build
on:
push:
branches: [ main ]
jobs:
pubh_to_registry:
name: Push Testar-Net-UI image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: CheckOut Repository
uses: actions/checkout@v2
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build and push testar-net-ui
uses: docker/build-push-action@v2
with:
context: .
file: ./src/BlazorApp/Dockerfile
push: true
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/testar-net-ui:1.10.1, ${{ secrets.DOCKER_HUB_USERNAME }}/testar-net-ui:latest
- name: Build and push testar-net-server
uses: docker/build-push-action@v2
with:
context: .
file: ./src/ChangeDetection.Server/Dockerfile
push: true
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/testar-net-server:1.10.1, ${{ secrets.DOCKER_HUB_USERNAME }}/testar-net-server:latest