wb-list-manager/.github/workflows/deploy.yml

39 lines
956 B
YAML
Raw Normal View History

2021-12-30 10:22:07 +00:00
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
2022-01-14 13:50:14 +00:00
ref: v1.0.16
2021-12-30 10:22:07 +00:00
path: .github/actions/action-deploy-docker
- name: Run Build Java
2022-01-19 11:38:56 +00:00
uses: valitydev/action-jdk-build@v0.0.7
2021-12-30 10:22:07 +00:00
- 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 }}