Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
pull_request:
branches: [ "main" ]


permissions:
contents: read

Expand Down Expand Up @@ -56,19 +57,23 @@ jobs:

- name: Set up Podman
uses: gacts/install-podman@v1
if: github.repository == 'mcruzdev/timeless'
id: podman

- name: Login to Quay.io
if: github.repository == 'mcruzdev/timeless'
uses: docker/login-action@v3
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}

- name: Create Docker image
if: github.repository == 'mcruzdev/timeless'
run: docker build -f src/main/docker/Dockerfile.jvm -t quay.io/timeless/timeless-api:${GITHUB_SHA::7} .

- name: Push Docker image to Quay.io
if: github.repository == 'mcruzdev/timeless'
run: docker push quay.io/timeless/timeless-api:${GITHUB_SHA::7}

whatsapp:
Expand Down Expand Up @@ -97,6 +102,7 @@ jobs:

- name: Login to Quay.io
if: false # Disabled for now: we need to add chrome to the buildpack image first
if: github.repository == 'mcruzdev/timeless'
uses: docker/login-action@v3
with:
registry: quay.io
Expand All @@ -105,10 +111,12 @@ jobs:

- name: Install pack CLI
if: false # Disabled for now: we need to add chrome to the buildpack image first
if: github.repository == 'mcruzdev/timeless'
uses: buildpacks/github-actions/setup-pack@v5.10.0

- name: Build and publish WhatsApp image with Buildpacks
if: false # Disabled for now: we need to add chrome to the buildpack image first
if: false # Disabled for now: we need to add chrome to the buildpack image first
if: github.repository == 'mcruzdev/timeless'
run: |
pack build quay.io/timeless/whatsapp:${GITHUB_SHA::7} \
--path . \
Expand Down