-
Notifications
You must be signed in to change notification settings - Fork 38
47 lines (40 loc) · 1.27 KB
/
build_docker.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
41
42
43
44
45
46
47
name: Build Docker toolchain
on:
- workflow_dispatch
jobs:
publish_docker_image_win:
name: Build Windows Docker toolchain
runs-on: ubuntu-latest
steps:
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Checkout code
uses: actions/checkout@v2
with:
path: .
fetch-depth: 0
- name: Build Docker image (Windows)
run: |
docker build -t "rrdash/tomb1main:latest" . -f docker/game-win/Dockerfile
docker push "rrdash/tomb1main:latest"
publish_docker_image_linux:
name: Build Linux Docker toolchain
runs-on: ubuntu-latest
steps:
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Checkout code
uses: actions/checkout@v2
with:
path: .
fetch-depth: 0
- name: Build Docker image (Linux)
run: |
docker build -t "rrdash/tomb1main-linux:latest" . -f docker/game-linux/Dockerfile
docker push "rrdash/tomb1main-linux:latest"