release candidategit add .! no more features, until finishing README;… #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: deploy-betting-house-postgres | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- betting-house-postgres/** | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
env: | |
VERSION: ${{ github.sha }} | |
CONTAINER_REGISTRY: ${{ secrets.CONTAINER_REGISTRY }} | |
REGISTRY_UN: ${{ secrets.REGISTRY_UN }} | |
REGISTRY_PW: ${{ secrets.REGISTRY_PW }} | |
NAME: betting-house-postgres | |
DIRECTORY: betting-house-postgres | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE. | |
- uses: actions/checkout@v3 | |
# | |
# Builds the Docker image. | |
# | |
- name: Build | |
run: ./scripts/cd/build-image.sh | |
# | |
# Publishes the Docker image to the container registry. | |
# | |
- name: Publish | |
run: ./scripts/cd/push-image.sh | |
# | |
# Installs Kubectl and connects it to the cluster. | |
# | |
# https://github.com/marketplace/actions/kubernetes-cli-kubectl | |
# | |
- uses: tale/kubectl-action@v1 | |
with: | |
base64-kube-config: ${{ secrets.KUBE_CONFIG }} | |
kubectl-version: v1.29.2 | |
# | |
# Expands the configuration template and deploys the microservice. | |
# | |
- name: Deploy | |
run: ./scripts/cd/deploy.sh |