Add link to latest line graph #178
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: Build and deploy | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: update tag in manifest.yml | |
run: sed -i -e "s#__TAG__#${GITHUB_SHA}#g" values.yaml | |
- uses: BlindfoldedSurgery/[email protected] | |
with: | |
raw_command: lint | |
- uses: BlindfoldedSurgery/[email protected] | |
with: | |
raw_command: lint --strict | |
build_push_docker: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build the tagged Docker image | |
run: docker build -t ghcr.io/woog-life/preliminary-frontend:${GITHUB_SHA} . | |
- name: Push the tagged Docker image | |
run: docker push ghcr.io/woog-life/preliminary-frontend:${GITHUB_SHA} | |
deploy: | |
runs-on: ubuntu-latest | |
needs: build_push_docker | |
steps: | |
- uses: actions/checkout@v4 | |
- run: sed -i -e "s#__TAG__#${GITHUB_SHA}#g" values.yaml | |
- run: sed -i -e "s#__OPEN_WEATHER_MAP_KEY__#${{ secrets.OPENWEATHERMAP_APIKEY_RAW }}#g" values.yaml | |
- name: install helm chart | |
uses: BlindfoldedSurgery/[email protected] | |
with: | |
subcommand: upgrade | |
release_name: preliminary-frontend | |
ref: . | |
namespace: wooglife | |
install: true | |
atomic: true | |
kubeconfig: ${{ secrets.KUBECONFIG_RAW }} |