Skip to content

init commit

init commit #1

name: deploy-tickets
on:
push:
branches:
- master
paths:
- tickets/**
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: tickets
DIRECTORY: tickets
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