Added deployment of webapp with helm. #11
Workflow file for this run
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: deploy webapp | |
concurrency: deploy | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
- develop | |
paths: | |
- frontend/** | |
- .github/workflows/deploy-webapp.yaml | |
jobs: | |
build: | |
name: Deploy frontend | |
runs-on: "ubuntu-24.04" | |
environment: deploy | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to Docker | |
uses: azure/docker-login@v1 | |
with: | |
login-server: c63eqfuv.c1.gra9.container-registry.ovh.net | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Extract metadata for Docker | |
id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: c63eqfuv.c1.gra9.container-registry.ovh.net/gfts/webapp | |
tags: | | |
type=ref,event=branch | |
type=sha,format=short | |
latest | |
- name: Build and push Docker image | |
uses: docker/build-push-action@v5 | |
with: | |
context: ./webapp | |
file: ./webapp/deploy/Dockerfile | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} | |
- name: Deploy to Kubernetes via Helm | |
uses: 'deliverybot/helm@v1' | |
with: | |
registry: 'c63eqfuv.c1.gra9.container-registry.ovh.net' | |
image: 'gfts/webapp' | |
namespace: 'webapp' |