Taiga commited on
Commit
11603d9
·
unverified ·
2 Parent(s): 607fefd21f46a2

Merge pull request #11 from moriyalab/fix_ci_2

Browse files
Files changed (1) hide show
  1. .github/workflows/docker.yml +2 -2
.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 == 'workflow_dispatch'
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 == 'workflow_dispatch'
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