Skip to content

Commit

Permalink
config(spring): change the name of the database to blocc-dashboard-ba…
Browse files Browse the repository at this point in the history
…ckend
  • Loading branch information
TonyWu3027 committed Aug 19, 2023
1 parent 7c49cac commit f22c8c5
Showing 1 changed file with 49 additions and 49 deletions.
98 changes: 49 additions & 49 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,63 +6,63 @@ on:

env:
REGISTRY: ghcr.io

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3

- uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'temurin'

- name: Setup PostgreSQL
uses: Harmon758/[email protected]
with:
postgresql db: blocc-dashboard-backend
postgresql user: blocc-dashboard-backend
postgresql password: blocc-dashboard-backend-db

- uses: gradle/wrapper-validation-action@v1

- uses: gradle/gradle-build-action@v2
with:
arguments: build
cache-enabled: true

- uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'temurin'
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
buildkitd-flags: --debug
config-inline: |
[worker.oci]
max-parallelism = 1
- name: Setup PostgreSQL
uses: Harmon758/[email protected]
with:
postgresql db: blocc-dashboard
postgresql user: blocc-dashboard-backend
postgresql password: blocc-dashboard-backend-db

- uses: gradle/wrapper-validation-action@v1

- uses: gradle/gradle-build-action@v2
with:
arguments: build
cache-enabled: true
- name: Log in to GitHub Container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
buildkitd-flags: --debug
config-inline: |
[worker.oci]
max-parallelism = 1
- name: Log in to GitHub Container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ github.repository }}

- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ github.repository }}

- name: Build and push Image
id: push
uses: docker/build-push-action@v3
with:
context: .
file: Dockerfile
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
push: true
labels: ${{ steps.meta.outputs.labels }}
- name: Build and push Image
id: push
uses: docker/build-push-action@v3
with:
context: .
file: Dockerfile
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
push: true
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit f22c8c5

Please sign in to comment.