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:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
@ -7,13 +7,4 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-20.04
|
uses: valitydev/base-workflow/.github/workflows/maven-library-build.yml@v1.0.1
|
||||||
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
|
|
||||||
|
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:
|
on:
|
||||||
push:
|
push:
|
||||||
@ -6,34 +6,11 @@ on:
|
|||||||
- 'master'
|
- 'master'
|
||||||
- 'main'
|
- 'main'
|
||||||
|
|
||||||
env:
|
|
||||||
REGISTRY: ghcr.io
|
|
||||||
IMAGE_NAME: ${{ github.repository }}
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-deploy:
|
deploy:
|
||||||
runs-on: ubuntu-20.04
|
uses: valitydev/base-workflow/.github/workflows/maven-library-deploy.yml@v1.0.1
|
||||||
steps:
|
secrets:
|
||||||
- name: Checkout Repo
|
server-username: ${{ secrets.OSSRH_USERNAME }}
|
||||||
uses: actions/checkout@v2
|
server-password: ${{ secrets.OSSRH_TOKEN }}
|
||||||
|
deploy-secret-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
|
||||||
- name: Checkout GitHub Action JDK Build Repo
|
deploy-secret-key-password: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
|
||||||
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 }}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user