Skip to content

Commit 4168773

Browse files
authored
Merge pull request #169 from amitbhatt818/build2
fix(build): push latest image of d-action and dope
2 parents 4da0837 + 6ce6535 commit 4168773

File tree

3 files changed

+28
-1
lines changed

3 files changed

+28
-1
lines changed

.github/workflows/test-release.yaml

+22-1
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,25 @@ jobs:
5454
- name: Make Semantic Release
5555
env:
5656
GH_TOKEN: ${{ secrets.PAT }}
57-
run: npx semantic-release
57+
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 }}

Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,7 @@ image:
4545
.PHONY: push
4646
push: image
4747
docker push $(IMG_REPO):$(PACKAGE_VERSION)
48+
49+
.PHONY: push-latest
50+
push-latest: image
4851
docker push $(IMG_REPO):latest

tools/d-action/Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,7 @@ image:
4545
.PHONY: push
4646
push: image
4747
docker push $(IMG_REPO):$(PACKAGE_VERSION)
48+
49+
.PHONY: push-latest
50+
push-latest: image
4851
docker push $(IMG_REPO):latest

0 commit comments

Comments
 (0)