Skip to content

Commit 8508580

Browse files
authored
Merge pull request #170 from mayadata-io/build-2
fix(build): add latest image push yaml
2 parents 4168773 + 56b5d3a commit 8508580

File tree

2 files changed

+28
-21
lines changed

2 files changed

+28
-21
lines changed
+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Push latest-images to docker
2+
on:
3+
push:
4+
branches:
5+
- master
6+
7+
jobs:
8+
push-latest:
9+
runs-on: ubuntu-18.04
10+
strategy:
11+
matrix:
12+
push: ['push-latest']
13+
name: ${{ matrix.push }}
14+
steps:
15+
- name: Checkout Code
16+
uses: actions/checkout@v2
17+
- name: Login to DockerHub
18+
uses: docker/login-action@v1
19+
with:
20+
username: ${{ secrets.DOCKER_USERNAME }}
21+
password: ${{ secrets.DOCKER_TOKEN }}
22+
- name: Build and push dope latest image
23+
run: |
24+
make ${{ matrix.push }}
25+
- name: Build and push d-action latest image
26+
run: |
27+
cd tools/d-action
28+
make ${{ matrix.push }}

.github/workflows/test-release.yaml

-21
Original file line numberDiff line numberDiff line change
@@ -55,24 +55,3 @@ jobs:
5555
env:
5656
GH_TOKEN: ${{ secrets.PAT }}
5757
run: npx semantic-release
58-
59-
push-latest:
60-
runs-on: ubuntu-18.04
61-
strategy:
62-
matrix:
63-
push: ['push-latest']
64-
name: ${{ matrix.push }}
65-
steps:
66-
- name: Checkout Code
67-
uses: actions/checkout@v2
68-
- name: Login to DockerHub
69-
uses: docker/login-action@v1
70-
with:
71-
username: ${{ secrets.DOCKERHUB_USERNAME }}
72-
password: ${{ secrets.DOCKERHUB_TOKEN }}
73-
- name: Build and push dope latest image
74-
- run: make ${{ matrix.push }}
75-
- name: Build and push d-action latest image
76-
run: |
77-
cd tools/d-action
78-
make ${{ matrix.push }}

0 commit comments

Comments
 (0)