forked from CFD-GO/TCLB_docker
-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (44 loc) · 1.26 KB
/
Copy pathworkspace.yml
File metadata and controls
48 lines (44 loc) · 1.26 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
39
40
41
42
43
44
45
46
47
48
name: Docker Image CI
on:
push:
branches: [ master ]
paths:
- 'workSpace/**'
- 'core/**'
- 'buildKit/**'
jobs:
build-workspace:
runs-on: ubuntu-latest
steps:
-
name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Checkout
uses: actions/checkout@v2
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +%s)"
-
name: Build Workspace
uses: docker/build-push-action@v2
with:
context: ./workSpace/ubuntu2004
platforms: linux/amd64
push: true
tags: mdzik/tclb_workspace:latest,mdzik/tclb_workspace:${{ steps.date.outputs.date }}
- name: Dependent Repository Dispatch - Binder
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.BINDER_REPO_ACCESS_TOKEN }}
repository: mdzik/TCLB_binder
event-type: update-on-upstream