Skip to content

Commit 4c4156d

Browse files
committed
cicd problem
1 parent e310b67 commit 4c4156d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ jobs:
9494
uses: docker/setup-buildx-action@v3
9595

9696
- name: Login to Docker Hub
97-
if: ${{ secrets.DOCKERHUB_USERNAME != '' && secrets.DOCKERHUB_TOKEN != '' && github.event_name == 'push' && github.ref == 'refs/heads/main' }}
97+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
9898
uses: docker/login-action@v3
9999
with:
100100
username: ${{ secrets.DOCKERHUB_USERNAME }}
@@ -104,14 +104,14 @@ jobs:
104104
uses: docker/build-push-action@v6
105105
with:
106106
context: ./apps/api
107-
push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && secrets.DOCKERHUB_USERNAME != '' && secrets.DOCKERHUB_TOKEN != '' }}
107+
push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
108108
tags: ${{ secrets.DOCKERHUB_USERNAME }}/one-password-api:latest
109109

110110
- name: Build Web image
111111
uses: docker/build-push-action@v6
112112
with:
113113
context: ./apps/web
114-
push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && secrets.DOCKERHUB_USERNAME != '' && secrets.DOCKERHUB_TOKEN != '' }}
114+
push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
115115
tags: ${{ secrets.DOCKERHUB_USERNAME }}/one-password-web:latest
116116

117117

0 commit comments

Comments
 (0)