-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (40 loc) · 1.35 KB
/
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
name: Stochss-Compute Docker container build & push
on:
push:
branches:
- "main"
jobs:
build-push:
runs-on: ubuntu-latest
steps:
- run: echo "🔎 Branch >>> ${{ github.ref }}"
- run: echo "🔎 Repository >>> ${{ github.repository }}"
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- run: echo "🎉 Docker Buildx setup triggered by ${{ github.event_name }}."
- run: echo "🐧 This job is now running on ${{ runner.os }}"
- name: checkout
uses: actions/checkout@v2
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner.."
-
name: Login to DockerHub
uses: docker/login-action@v1
with:
username: "${{ secrets.MD_DOCKERHUB_USERNAME }}"
password: "${{ secrets.MD_DOCKERHUB_TOKEN }}"
-
name: Build and push to stochss org on DockerHub
uses: docker/build-push-action@v2
with:
push: true
file: .api.dockerfile
tags: stochss/stochss-compute:latest
-
name: Build and push to stochss org on DockerHub
uses: docker/build-push-action@v2
with:
push: true
file: .cloud.dockerfile
tags: stochss/stochss-compute:cloud
- run: echo "🍏 This job's status is ${{ job.status }}."