-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from alkem-io/develop
[0.4.0] Whiteboard server-side master
- Loading branch information
Showing
62 changed files
with
1,913 additions
and
1,101 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Build, Migrate & Deploy to Dev | ||
name: Build & Deploy to Dev on Azure | ||
|
||
on: | ||
push: | ||
|
@@ -25,6 +25,7 @@ jobs: | |
deploy: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- name: 'Checkout GitHub Action' | ||
uses: actions/[email protected] | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Build & Deploy to Dev on Hetzner | ||
|
||
on: | ||
push: | ||
branches: [develop] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Checkout GitHub Action' | ||
uses: actions/[email protected] | ||
|
||
- name: 'Login into ACR' | ||
uses: azure/docker-login@v2 | ||
with: | ||
login-server: ${{ secrets.REGISTRY_LOGIN_SERVER }} | ||
username: ${{ secrets.REGISTRY_USERNAME }} | ||
password: ${{ secrets.REGISTRY_PASSWORD }} | ||
|
||
- name: 'Build & Push image' | ||
run: | | ||
docker build -f Dockerfile . -t ${{ secrets.REGISTRY_LOGIN_SERVER }}/alkemio-whiteboard-collaboration-service:${{ github.sha }} -t ${{ secrets.REGISTRY_LOGIN_SERVER }}/alkemio-whiteboard-collaboration-service:latest | ||
docker push ${{ secrets.REGISTRY_LOGIN_SERVER }}/alkemio-whiteboard-collaboration-service:${{ github.sha }} | ||
deploy: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- name: 'Checkout GitHub Action' | ||
uses: actions/[email protected] | ||
|
||
- name: Install Kubectl | ||
uses: azure/[email protected] | ||
with: | ||
version: 'v1.27.6' # Ensure this matches the version used in your cluster | ||
|
||
- name: Set up Kubeconfig for Hetzner k3s | ||
run: | | ||
mkdir -p $HOME/.kube # Ensure the .kube directory exists | ||
echo "${{ secrets.KUBECONFIG_SECRET_HETZNER_DEV }}" > $HOME/.kube/config | ||
chmod 600 $HOME/.kube/config | ||
- name: Create Image Pull Secret | ||
run: | | ||
kubectl create secret docker-registry alkemio-whiteboard-collaboration-service-secret \ | ||
--docker-server=${{ secrets.REGISTRY_LOGIN_SERVER }} \ | ||
--docker-username=${{ secrets.REGISTRY_USERNAME }} \ | ||
--docker-password=${{ secrets.REGISTRY_PASSWORD }} \ | ||
--dry-run=client -o yaml | kubectl apply -f - | ||
- uses: Azure/[email protected] | ||
with: | ||
manifests: | | ||
manifests/25-whiteboard-collaboration-service-deployment-dev.yaml | ||
images: | | ||
${{ secrets.REGISTRY_LOGIN_SERVER }}/alkemio-whiteboard-collaboration-service:${{ github.sha }} | ||
imagepullsecrets: | | ||
alkemio-whiteboard-collaboration-service-secret |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Build, Migrate & Deploy to Sandbox on Azure | ||
name: Build & Deploy to Sandbox on Azure | ||
|
||
on: | ||
workflow_dispatch: | ||
|
@@ -23,6 +23,7 @@ jobs: | |
docker push ${{ secrets.REGISTRY_LOGIN_SERVER }}/alkemio-whiteboard-collaboration-service:${{ github.sha }} | ||
deploy: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- name: 'Checkout GitHub Action' | ||
uses: actions/[email protected] | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Build & Deploy to Sandbox on Hetzner | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Checkout GitHub Action' | ||
uses: actions/[email protected] | ||
|
||
- name: 'Login into ACR' | ||
uses: azure/docker-login@v2 | ||
with: | ||
login-server: ${{ secrets.REGISTRY_LOGIN_SERVER }} | ||
username: ${{ secrets.REGISTRY_USERNAME }} | ||
password: ${{ secrets.REGISTRY_PASSWORD }} | ||
|
||
- name: 'Build & Push image' | ||
run: | | ||
docker build -f Dockerfile . -t ${{ secrets.REGISTRY_LOGIN_SERVER }}/alkemio-whiteboard-collaboration-service:${{ github.sha }} -t ${{ secrets.REGISTRY_LOGIN_SERVER }}/alkemio-whiteboard-collaboration-service:latest | ||
docker push ${{ secrets.REGISTRY_LOGIN_SERVER }}/alkemio-whiteboard-collaboration-service:${{ github.sha }} | ||
deploy: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- name: 'Checkout GitHub Action' | ||
uses: actions/[email protected] | ||
|
||
- name: Install Kubectl | ||
uses: azure/[email protected] | ||
with: | ||
version: 'v1.27.6' # Ensure this matches the version used in your cluster | ||
|
||
- name: Set up Kubeconfig for Hetzner k3s | ||
run: | | ||
mkdir -p $HOME/.kube # Ensure the .kube directory exists | ||
echo "${{ secrets.KUBECONFIG_SECRET_HETZNER_SANDBOX }}" > $HOME/.kube/config | ||
chmod 600 $HOME/.kube/config | ||
- name: Create Image Pull Secret | ||
run: | | ||
kubectl create secret docker-registry alkemio-whiteboard-collaboration-service-secret \ | ||
--docker-server=${{ secrets.REGISTRY_LOGIN_SERVER }} \ | ||
--docker-username=${{ secrets.REGISTRY_USERNAME }} \ | ||
--docker-password=${{ secrets.REGISTRY_PASSWORD }} \ | ||
--dry-run=client -o yaml | kubectl apply -f - | ||
- uses: Azure/[email protected] | ||
with: | ||
manifests: | | ||
manifests/25-whiteboard-collaboration-service-deployment-dev.yaml | ||
images: | | ||
${{ secrets.REGISTRY_LOGIN_SERVER }}/alkemio-whiteboard-collaboration-service:${{ github.sha }} | ||
imagepullsecrets: | | ||
alkemio-whiteboard-collaboration-service-secret |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Build, Migrate & Deploy to Test on Azure | ||
name: Build & Deploy to Test on Azure | ||
|
||
on: | ||
workflow_dispatch: | ||
|
@@ -24,6 +24,7 @@ jobs: | |
deploy: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- name: 'Checkout GitHub Action' | ||
uses: actions/[email protected] | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Build & Deploy to Test on Hetzner | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Checkout GitHub Action' | ||
uses: actions/[email protected] | ||
|
||
- name: 'Login into ACR' | ||
uses: azure/docker-login@v2 | ||
with: | ||
login-server: ${{ secrets.REGISTRY_LOGIN_SERVER }} | ||
username: ${{ secrets.REGISTRY_USERNAME }} | ||
password: ${{ secrets.REGISTRY_PASSWORD }} | ||
|
||
- name: 'Build & Push image' | ||
run: | | ||
docker build -f Dockerfile . -t ${{ secrets.REGISTRY_LOGIN_SERVER }}/alkemio-whiteboard-collaboration-service:${{ github.sha }} -t ${{ secrets.REGISTRY_LOGIN_SERVER }}/alkemio-whiteboard-collaboration-service:latest | ||
docker push ${{ secrets.REGISTRY_LOGIN_SERVER }}/alkemio-whiteboard-collaboration-service:${{ github.sha }} | ||
deploy: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- name: 'Checkout GitHub Action' | ||
uses: actions/[email protected] | ||
|
||
- name: Install Kubectl | ||
uses: azure/[email protected] | ||
with: | ||
version: 'v1.27.6' # Ensure this matches the version used in your cluster | ||
|
||
- name: Set up Kubeconfig for Hetzner k3s | ||
run: | | ||
mkdir -p $HOME/.kube # Ensure the .kube directory exists | ||
echo "${{ secrets.KUBECONFIG_SECRET_HETZNER_TEST }}" > $HOME/.kube/config | ||
chmod 600 $HOME/.kube/config | ||
- name: Create Image Pull Secret | ||
run: | | ||
kubectl create secret docker-registry alkemio-whiteboard-collaboration-service-secret \ | ||
--docker-server=${{ secrets.REGISTRY_LOGIN_SERVER }} \ | ||
--docker-username=${{ secrets.REGISTRY_USERNAME }} \ | ||
--docker-password=${{ secrets.REGISTRY_PASSWORD }} \ | ||
--dry-run=client -o yaml | kubectl apply -f - | ||
- uses: Azure/[email protected] | ||
with: | ||
manifests: | | ||
manifests/25-whiteboard-collaboration-service-deployment-dev.yaml | ||
images: | | ||
${{ secrets.REGISTRY_LOGIN_SERVER }}/alkemio-whiteboard-collaboration-service:${{ github.sha }} | ||
imagepullsecrets: | | ||
alkemio-whiteboard-collaboration-service-secret |
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
Oops, something went wrong.