Skip to content

Commit eb4400a

Browse files
committed
try conditional environment
1 parent 107634b commit eb4400a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
docker-build:
4242
runs-on: ubuntu-latest
4343
timeout-minutes: 10
44-
environment: ""
44+
environment: ${ github.event_name == 'push' && github.ref == 'refs/heads/main' && 'dockerhub' || 'default' }
4545
needs: [set-variables]
4646
strategy:
4747
fail-fast: false

0 commit comments

Comments
 (0)