Skip to content

Commit

Permalink
[BUGFIX] Fixed docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
MathisBurger committed Apr 9, 2024
1 parent ce0427f commit 264ce4e
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/partcial_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
on:
push:
branches: ["dev/v1.3.1"]


jobs:
build:
runs-on: ubuntu-latest
services:
postgres:
image: postgres
# Provide the password for postgres
env:
POSTGRES_PASSWORD: mysecretpassword
POSTGRES_DB: immowealth
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
# Maps tcp port 5432 on service container to the host
- 5432:5432
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
cache: 'gradle'
- name: Build with Gradle
run: ./gradlew build -Dquarkus.package.type=uber-jar
- name: Start application
run: |
nohup ./gradlew --console=plain quarkusDev &
for attempt in {1..20}; do sleep 1; if curl http://localhost:8080/; then echo ready; break; fi; echo waiting...; done
- name: Generate schema
run: curl http://localhost:8080/graphql/schema.graphql >> web/schema.graphql
- name: Update schema
run: |
echo "scalar Date" >> web/schema.graphql
echo "scalar BigInteger" >> web/schema.graphql
echo "scalar DateTime" >> web/schema.graphql
- name: set up buildx
uses: docker/setup-buildx-action@v1
- name: log in to ghcr
uses: docker/login-action@v1
with:
registry: ghcr.io
username: mathisburger
password: ${{ secrets.GITHUB_TOKEN }}
- name: build and push
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ghcr.io/mathisburger/immowealth:v1.3.0.1

0 comments on commit 264ce4e

Please sign in to comment.