Update deploy script with longer wait times and error handling #8
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: Convert Docker Compose to Kubernetes | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
convert: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '1.16' | |
- name: Install kompose | |
run: | | |
curl -L https://github.com/kubernetes/kompose/releases/download/v1.23.0/kompose-linux-amd64 -o kompose | |
chmod +x kompose | |
sudo mv kompose /usr/local/bin/ | |
- name: Convert Docker Compose to Kubernetes | |
run: | | |
mkdir -p k8s-manifests | |
kompose convert -f docker-compose.minio-weaviate-python.ts.yaml -o k8s-manifests/ | |
- name: Commit and push the Kubernetes manifests | |
run: | | |
git config --global user.name 'github-actions[bot]' | |
git config --global user.email 'github-actions[bot]@users.noreply.github.com' | |
git add k8s-manifests | |
git commit -m "Convert Docker Compose to Kubernetes manifests" | |
git push | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |