fix workflows

This commit is contained in:
ggmaleva 2022-01-27 18:05:36 +03:00
parent f827981ba1
commit d6e3c3d253
2 changed files with 8 additions and 52 deletions

View File

@ -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

View File

@ -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 }}