Responsive design (#4) #29
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: Eudaimonia | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build Docker image | |
env: | |
DOCKER_HUB_USERNAME: spacez320 | |
DOCKER_HUB_TOKEN: ${{ secrets.DOCKER_HUB_TOKEN }} | |
run: | | |
docker login --password $DOCKER_HUB_TOKEN --username $DOCKER_HUB_USERNAME | |
docker build --tag spacez320/eudaimonia:latest . | |
docker push spacez320/eudaimonia:latest | |
deploy: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Deploy to Kubernetes | |
env: | |
KUBERNETES_BEARER_TOKEN: ${{ secrets.KUBERNETES_BEARER_TOKEN }} | |
KUBERNETES_SERVER: ${{ secrets.KUBERNETES_SERVER }} | |
run: | | |
kubectl \ | |
--insecure-skip-tls-verify=true \ | |
--server $KUBERNETES_SERVER \ | |
--token $KUBERNETES_BEARER_TOKEN \ | |
apply \ | |
--filename kubernetes.yaml |