-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
22,372 additions
and
13,430 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
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
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,37 @@ | ||
name: Deploy to Kubernetes | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Update Kubernetes Manifests | ||
run: | | ||
IMAGE_NAME=enaccess/mpm-backend | ||
TAG= | ||
sed -i "s|image: .*|image: $IMAGE_NAME:$TAG|" ./k8s/deployments/mpm-backend.yaml | ||
- name: Apply Kubernetes Configuration | ||
env: | ||
KUBECONFIG: ${{ secrets.KUBECONFIG }} | ||
run: | | ||
kubectl apply -f ./k8s/deployments/mpm-backend.yaml | ||
kubectl apply -f ./k8s/services/mpm-backend.yaml | ||
# add kube secrets to github repo | ||
# tags: use latest or have a version number |
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,13 @@ | ||
{ | ||
"branches": ["ft/versioning"], | ||
"repositoryUrl": "https://github.com/EnAccess/micropowermanager", | ||
"plugins": [ | ||
"@semantic-release/commit-analyzer", | ||
"@semantic-release/release-notes-generator", | ||
"@semantic-release/changelog", | ||
"@semantic-release/github", | ||
"@semantic-release/git", | ||
"@semantic-release/npm" | ||
], | ||
"tagFormat": "v${version}" | ||
} |
Oops, something went wrong.