Skip to content

Commit

Permalink
Prepare for transip
Browse files Browse the repository at this point in the history
  • Loading branch information
Daanvm committed Dec 12, 2023
1 parent 92fa649 commit 6776d72
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 17 deletions.
27 changes: 10 additions & 17 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
on:
push:
branches:
- master
- transip

jobs:
build:
name: Build Docker images
runs-on: ubuntu-latest
steps:
- name: Checkout master
- name: Checkout current repo
uses: actions/checkout@v3

- name: Set up Docker Buildx
Expand Down Expand Up @@ -50,19 +50,12 @@ jobs:
- name: Checkout master
uses: actions/checkout@v3

- name: Install doctl
uses: digitalocean/action-doctl@v2
with:
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}

- name: Save DigitalOcean kubeconfig with short-lived credentials
run: doctl kubernetes cluster kubeconfig save --expiry-seconds 600 k8s-daanvm

- name: Create kubernetes resources
run: |
kubectl apply -f daanvm.nl.yaml
- name: Deploy new latest version of docker image
run: |
kubectl rollout restart deployment daanvm-nl
kubectl rollout restart deployment daanvm-nl-php
uses: wahyd4/kubectl-helm-action@master
env:
KUBE_CONFIG_DATA: ${{ secrets.TRANSIP_KUBECONFIG_BASE64 }}
with:
args: |
kubectl apply -f daanvm.nl.yaml
kubectl rollout restart deployment daanvm-nl
kubectl rollout restart deployment daanvm-nl-php
1 change: 1 addition & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<body>
<h1>Welcome to Daan Virtual Machines</h1>
<p>Nothing to see here.</p>
<p>Hosted by TransIP</p>
<p><em>-Daan</em></p>
</body>
</html>

0 comments on commit 6776d72

Please sign in to comment.