wb-list-manager/.github/workflows/deploy.yml
2022-01-19 14:38:56 +03:00

39 lines
956 B
YAML

name: Deploy Docker Image
on:
push:
branches:
- '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 }}