add more images, fix height on standings row, fix tag in ci (#12) #27
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: CI | |
on: | |
push: | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: app | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '18.x' | |
- run: yarn | |
- run: yarn lint | |
- run: yarn test | |
deploy: | |
runs-on: ubuntu-latest | |
needs: [main] | |
if: ${{ (github.head_ref || github.ref_name) == 'main' }} | |
environment: hdweeklyleague.com | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_TOKEN }} | |
- name: Build and push | |
uses: docker/build-push-action@v5 | |
with: | |
context: app | |
push: true | |
tags: hdstmevents/app:latest | |
- name: Install doctl | |
uses: digitalocean/action-doctl@v2 | |
with: | |
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }} | |
- name: Helm Upgrade | |
shell: bash | |
run: | | |
doctl kubernetes cluster kubeconfig save --expiry-seconds 240 ${{ secrets.DIGITALOCEAN_CLUSTER_NAME }} | |
helm dependency update ./helm/hds-tm-events | |
helm -n hds-tm-events upgrade --install --wait --timeout 60s --atomic hds-tm-events ./helm/hds-tm-events/ |