Skip to content

Commit d6c2247

Browse files
committed
Adding manual build
1 parent 7e3b569 commit d6c2247

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/manual_build.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Manual Docker build and push
2+
on:
3+
workflow_dispatch:
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout code
11+
uses: actions/checkout@v2
12+
13+
- name: Set up Docker Buildx
14+
uses: docker/setup-buildx-action@v1
15+
16+
- name: Login to Docker Hub
17+
run: echo ${{ secrets.DOCKERHUB_ACCESS_TOKEN }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
18+
19+
- name: Build and push register app session II
20+
uses: docker/build-push-action@v3
21+
with:
22+
context: hands-on/session II/
23+
push: true
24+
file: ./hands-on/session II/Materials/Dockerfile
25+
tags: ${{ secrets.DOCKERHUB_ORG }}/nsdf_tutorial:sessionII
26+
27+
- name: Build and push register app session III
28+
uses: docker/build-push-action@v3
29+
with:
30+
context: hands-on/session III
31+
push: true
32+
file: ./hands-on/session III/Dockerfile
33+
tags: ${{ secrets.DOCKERHUB_ORG }}/nsdf_tutorial:sessionIII
34+
35+
env:
36+
DOCKER_CLI_EXPERIMENTAL: enabled
37+
DOCKER_BUILDKIT: 1

0 commit comments

Comments
 (0)