mirror of
https://github.com/valitydev/fraudo.git
synced 2024-11-06 01:45:16 +00:00
parent
14816ba5e7
commit
5be134e663
13
.github/workflows/build.yml
vendored
13
.github/workflows/build.yml
vendored
@ -1,4 +1,4 @@
|
||||
name: Build Artifact
|
||||
name: Maven Build Artifact
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
@ -7,13 +7,4 @@ on:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: Checkout Repo
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Checkout GitHub Action Repo
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Run Build Java
|
||||
uses: valitydev/action-jdk-build@v0.0.7
|
||||
uses: valitydev/base-workflow/.github/workflows/maven-library-build.yml@v1.0.1
|
||||
|
39
.github/workflows/deploy.yml
vendored
39
.github/workflows/deploy.yml
vendored
@ -1,4 +1,4 @@
|
||||
name: Deploy Docker Image
|
||||
name: Maven Deploy Artifact
|
||||
|
||||
on:
|
||||
push:
|
||||
@ -6,34 +6,11 @@ on:
|
||||
- 'master'
|
||||
- 'main'
|
||||
|
||||
env:
|
||||
REGISTRY: ghcr.io
|
||||
IMAGE_NAME: ${{ github.repository }}
|
||||
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: Checkout Repo
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Checkout GitHub Action JDK Build Repo
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Checkout GitHub Action Deploy Docker Repo
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: valitydev/action-deploy-docker
|
||||
ref: v1.0.16
|
||||
path: .github/actions/action-deploy-docker
|
||||
|
||||
- name: Run Build Java
|
||||
uses: valitydev/action-jdk-build@v0.0.7
|
||||
|
||||
- name: Deploy image
|
||||
uses: ./.github/actions/action-deploy-docker
|
||||
with:
|
||||
registry-username: ${{ github.actor }}
|
||||
registry-access-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
env:
|
||||
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
|
||||
deploy:
|
||||
uses: valitydev/base-workflow/.github/workflows/maven-library-deploy.yml@v1.0.1
|
||||
secrets:
|
||||
server-username: ${{ secrets.OSSRH_USERNAME }}
|
||||
server-password: ${{ secrets.OSSRH_TOKEN }}
|
||||
deploy-secret-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
|
||||
deploy-secret-key-password: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
|
||||
|
Loading…
Reference in New Issue
Block a user