mirror of
https://github.com/valitydev/wb-list-manager.git
synced 2024-11-06 09:45:18 +00:00
39 lines
956 B
YAML
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 }} |