Spaces:
Sleeping
Sleeping
Merge pull request #11 from moriyalab/fix_ci_2
Browse files
.github/workflows/docker.yml
CHANGED
|
@@ -16,7 +16,7 @@ jobs:
|
|
| 16 |
uses: actions/checkout@v3
|
| 17 |
|
| 18 |
- name: Log in to GitHub Container Registry
|
| 19 |
-
if: github.event_name == '
|
| 20 |
uses: docker/login-action@v2
|
| 21 |
with:
|
| 22 |
registry: ghcr.io
|
|
@@ -29,7 +29,7 @@ jobs:
|
|
| 29 |
docker build -t ghcr.io/${{ github.repository }}:latest --target release_image .
|
| 30 |
|
| 31 |
- name: Push Docker image
|
| 32 |
-
if: github.event_name == '
|
| 33 |
run: |
|
| 34 |
docker push ghcr.io/${{ github.repository }}_dev:latest
|
| 35 |
docker push ghcr.io/${{ github.repository }}:latest
|
|
|
|
| 16 |
uses: actions/checkout@v3
|
| 17 |
|
| 18 |
- name: Log in to GitHub Container Registry
|
| 19 |
+
if: github.event_name == 'push'
|
| 20 |
uses: docker/login-action@v2
|
| 21 |
with:
|
| 22 |
registry: ghcr.io
|
|
|
|
| 29 |
docker build -t ghcr.io/${{ github.repository }}:latest --target release_image .
|
| 30 |
|
| 31 |
- name: Push Docker image
|
| 32 |
+
if: github.event_name == 'push'
|
| 33 |
run: |
|
| 34 |
docker push ghcr.io/${{ github.repository }}_dev:latest
|
| 35 |
docker push ghcr.io/${{ github.repository }}:latest
|