Skip to content

Commit

Permalink
Merge ; commit '0d3cd45753f2a3e7c2d1d2d7478e826491a833a5'
Browse files Browse the repository at this point in the history
  • Loading branch information
Cdaprod committed Jun 23, 2024
2 parents aee81f1 + 0d3cd45 commit 6604e28
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 2 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/compose-to-kompose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
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 }}
4 changes: 2 additions & 2 deletions clean-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ docker network prune -f
docker image prune -f

# Bring down any running services and remove orphans
docker-compose -f docker-compose.minio-weaviate-python.ts.yaml down --remove-orphans
docker-compose -f ~/minio-weaviate/docker-compose.minio-weaviate-python.ts.yaml down --remove-orphans

# Bring up the services with a fresh build
docker-compose -f docker-compose.minio-weaviate-python.ts.yaml up -d --build
docker-compose -f ~/minio-weaviate/docker-compose.minio-weaviate-python.ts.yaml up -d --build

0 comments on commit 6604e28

Please sign in to comment.