Spaces:
Running
Running
Uncomment required code (#3)
Browse files
.github/workflows/ci-cd.yaml
CHANGED
@@ -106,20 +106,20 @@ jobs:
|
|
106 |
resource: http://localhost:7860/?view=api
|
107 |
timeout: 60000
|
108 |
- name: Login to DockerHub
|
109 |
-
|
110 |
uses: docker/login-action@v2
|
111 |
with:
|
112 |
username: paiondatahub
|
113 |
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
114 |
- name: Push image to DockerHub
|
115 |
-
|
116 |
uses: docker/build-push-action@v3
|
117 |
with:
|
118 |
context: .
|
119 |
push: true
|
120 |
tags: paiondatahub/aristotle:latest
|
121 |
- name: Push image Description
|
122 |
-
|
123 |
uses: peter-evans/dockerhub-description@v4
|
124 |
with:
|
125 |
username: paiondatahub
|
|
|
106 |
resource: http://localhost:7860/?view=api
|
107 |
timeout: 60000
|
108 |
- name: Login to DockerHub
|
109 |
+
if: github.ref == 'refs/heads/master'
|
110 |
uses: docker/login-action@v2
|
111 |
with:
|
112 |
username: paiondatahub
|
113 |
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
114 |
- name: Push image to DockerHub
|
115 |
+
if: github.ref == 'refs/heads/master'
|
116 |
uses: docker/build-push-action@v3
|
117 |
with:
|
118 |
context: .
|
119 |
push: true
|
120 |
tags: paiondatahub/aristotle:latest
|
121 |
- name: Push image Description
|
122 |
+
if: github.ref == 'refs/heads/master'
|
123 |
uses: peter-evans/dockerhub-description@v4
|
124 |
with:
|
125 |
username: paiondatahub
|