mirror of
https://github.com/valitydev/fraudbusters-management.git
synced 2024-11-06 08:25:17 +00:00
fix workflows
This commit is contained in:
parent
f827981ba1
commit
d6e3c3d253
20
.github/workflows/build.yml
vendored
20
.github/workflows/build.yml
vendored
@ -1,4 +1,4 @@
|
||||
name: Build Artifact
|
||||
name: Maven Build Artifact
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
@ -7,20 +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
|
||||
with:
|
||||
repository: valitydev/action-jdk-build
|
||||
ref: v1.0.17
|
||||
path: .github/actions/action-jdk-build
|
||||
|
||||
- name: Run Build Java
|
||||
uses: ./.github/actions/action-jdk-build
|
||||
with:
|
||||
github-pat: '${{ secrets.GH_PACKAGES_RO_PAT }}'
|
||||
github-user: 'strug'
|
||||
uses: valitydev/base-workflow/.github/workflows/maven-service-build.yml@v1
|
40
.github/workflows/deploy.yml
vendored
40
.github/workflows/deploy.yml
vendored
@ -1,4 +1,4 @@
|
||||
name: Deploy Docker Image
|
||||
name: Maven Deploy Artifact
|
||||
|
||||
on:
|
||||
push:
|
||||
@ -11,36 +11,8 @@ env:
|
||||
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
|
||||
with:
|
||||
repository: valitydev/action-jdk-build
|
||||
ref: v1.0.17
|
||||
path: .github/actions/action-jdk-build
|
||||
|
||||
- name: Checkout GitHub Action Deploy Docker Repo
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: valitydev/action-deploy-docker
|
||||
ref: v1.0.13
|
||||
path: .github/actions/action-deploy-docker
|
||||
|
||||
- name: Run Build Java
|
||||
uses: ./.github/actions/action-jdk-build
|
||||
with:
|
||||
github-pat: '${{ secrets.GH_PACKAGES_RO_PAT }}'
|
||||
github-user: 'strug'
|
||||
|
||||
- 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-service-deploy.yml@v1
|
||||
secrets:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
mm-webhook-url: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
|
Loading…
Reference in New Issue
Block a user