-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix all GH actions so they run properly and produce the desired result.
- Loading branch information
Showing
6 changed files
with
41 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Build and publish a Docker image | ||
name: Build and publish container images | ||
on: | ||
push: | ||
tags: | ||
|
@@ -7,10 +7,10 @@ on: | |
- 'develop' | ||
jobs: | ||
eventsignup_backend-image: | ||
name: Build & push docker image | ||
name: Build & push container image | ||
runs-on: ubuntu-latest | ||
env: | ||
IMG_NAME: ${{ github.repository }} | ||
IMG_NAME: ghcr.io/${{ github.repository }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
@@ -19,7 +19,7 @@ jobs: | |
run: | | ||
echo "github.ref -> {{ github.ref }}" | ||
- name: Docker metadata | ||
- name: Container metadata | ||
id: metadata | ||
uses: docker/metadata-action@v3 | ||
with: | ||
|
@@ -29,37 +29,43 @@ jobs: | |
type=semver,pattern={{major}}.{{minor}} | ||
type=raw,value={{sha}},enable=${{ github.ref_type != 'tag' }} | ||
- name: Log in to Docker Hub | ||
uses: docker/[email protected] | ||
if: ${{ github.ref_type == 'tag' }} | ||
- name: Log in to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ secrets.gh_user }} | ||
password: ${{ secrets.gh_token }} | ||
|
||
- name: Build and push Docker image | ||
uses: docker/build-push-action@v2 | ||
- name: Build and push container image | ||
uses: docker/build-push-action@v5.1.0 | ||
with: | ||
context: . | ||
file: Dockerfile | ||
push: ${{ github.event.base_ref =='refs/heads/main' && github.ref_type == 'tag' && !startsWith(github.ref, 'refs/tags/v0.')}} | ||
push: true | ||
tags: ${{ steps.metadata.outputs.tags }} | ||
labels: ${{ steps.metadata.outputs.labels }} | ||
|
||
typescript-types: | ||
runs-on: ubuntu-latest | ||
container: eclipse-temurin:21 | ||
env: | ||
MONGO_HOST: localhost | ||
MONGO_HOST: mongodb | ||
KEYCLOAK_URL: localhost | ||
SPRING_PROFILES_ACTIVE: dev | ||
GIT_TAG: ${GITHUB_REF_NAME} | ||
services: | ||
mongodb: | ||
image: mongo:5.0.5 | ||
ports: | ||
- 27017:27017 | ||
options: >- | ||
--health-cmd mongo | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Start MongoDB | ||
uses: supercharge/[email protected] | ||
with: | ||
mongodb-version: '5.0.5' | ||
|
||
- name: Authenticate to github packages | ||
run: echo '//npm.pkg.github.com/:_authToken=${{ secrets.gh_token }}' > ~/.npmrc | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ jobs: | |
- name: Start MongoDB | ||
uses: supercharge/[email protected] | ||
with: | ||
mongodb-version: '5.0' | ||
mongodb-version: '5.0.5' | ||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@ec92e829475ac0c2315ea8f9eced72db85bb337a # v3.0.0 | ||
- name: Run unit tests | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,6 @@ | ||
spring.data.mongodb.host=localhost | ||
# OpenApi | ||
springdoc.api-docs.enabled=true | ||
springdoc.api-docs.path=/v1/api-docs | ||
springdoc.swagger-ui.disable-swagger-default-url=true | ||
springdoc.swagger-ui.enabled=true | ||
springdoc.swagger-ui.use-root-path=false | ||
# Quartz config | ||
org.quartz.jobStore.mongoUri=mongodb://localhost:27017 | ||
org.quartz.jobStore.dbName=eventsignup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters