fix workflows (#2)

Co-authored-by: ggmaleva <ggmaleva@yandex.ru>
This commit is contained in:
Gregory 2022-01-26 10:33:40 +03:00 committed by GitHub
parent 14816ba5e7
commit 5be134e663
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 42 deletions

View File

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

View File

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