@@ -3,6 +3,8 @@ name: Timeless CI - Build & Publish
33on :
44 push :
55 branches : [ "main" ]
6+ pull_request :
7+ branches : [ "main" ]
68
79
810permissions :
@@ -14,7 +16,6 @@ concurrency:
1416
1517jobs :
1618 timeless-api :
17- if : github.repository == 'mcruzdev/timeless'
1819 name : Build & Publish - Timeless API (Java)
1920 runs-on : ubuntu-latest
2021 defaults :
@@ -59,20 +60,22 @@ jobs:
5960 id : podman
6061
6162 - name : Login to Quay.io
63+ if : github.repository == 'mcruzdev/timeless'
6264 uses : docker/login-action@v3
6365 with :
6466 registry : quay.io
6567 username : ${{ secrets.QUAY_USERNAME }}
6668 password : ${{ secrets.QUAY_PASSWORD }}
6769
6870 - name : Create Docker image
71+ if : github.repository == 'mcruzdev/timeless'
6972 run : docker build -f src/main/docker/Dockerfile.jvm -t quay.io/timeless/timeless-api:${GITHUB_SHA::7} .
7073
7174 - name : Push Docker image to Quay.io
75+ if : github.repository == 'mcruzdev/timeless'
7276 run : docker push quay.io/timeless/timeless-api:${GITHUB_SHA::7}
7377
7478 whatsapp :
75- if : github.repository == 'mcruzdev/timeless'
7679 name : Build & Publish - WhatsApp Bot (Node.js)
7780 runs-on : ubuntu-latest
7881 defaults :
98101
99102 - name : Login to Quay.io
100103 if : false # Disabled for now: we need to add chrome to the buildpack image first
104+ if : github.repository == 'mcruzdev/timeless'
101105 uses : docker/login-action@v3
102106 with :
103107 registry : quay.io
@@ -106,10 +110,12 @@ jobs:
106110
107111 - name : Install pack CLI
108112 if : false # Disabled for now: we need to add chrome to the buildpack image first
113+ if : github.repository == 'mcruzdev/timeless'
109114 uses :
buildpacks/github-actions/[email protected] 110115
111116 - name : Build and publish WhatsApp image with Buildpacks
112- if : false # Disabled for now: we need to add chrome to the buildpack image first
117+ if : false # Disabled for now: we need to add chrome to the buildpack image first
118+ if : github.repository == 'mcruzdev/timeless'
113119 run : |
114120 pack build quay.io/timeless/whatsapp:${GITHUB_SHA::7} \
115121 --path . \
0 commit comments