Skip to content

Commit

Permalink
ci(docker): add Dockerfiles for OAuth2 and Platform services
Browse files Browse the repository at this point in the history
- Add Dockerfile for OAuth2 service
- Add Dockerfile for Platform service
- Update GitHub Actions workflow to build and push Platform image
  • Loading branch information
vnobo committed Dec 14, 2024
1 parent c4d33ca commit 2292c8b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/gradle-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,15 @@ jobs:
./gradlew bootBuildImage
- name: Log into registry ${{ env.GITHUB_REGISTRY }}
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: ${{ env.GITHUB_REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.PAGK_TOKEN }}

- name: Log into registry ${{ env.DOCKER_REGISTRY }}
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
Expand All @@ -69,6 +71,15 @@ jobs:
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=ref,event=branch
- name: Build and Push Platform
uses: docker/build-push-action@v6
with:
context: ./boot/platform
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

- name: Tag platform docker image
run: |
while IFS= read -r tag; do
Expand Down
1 change: 1 addition & 0 deletions boot/oauth2/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FROM plate-oauth2:latest
1 change: 1 addition & 0 deletions boot/platform/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FROM plate-platform:latest

0 comments on commit 2292c8b

Please sign in to comment.