build(deps): bump vite from 4.5.2 to 4.5.3 (#832) #166
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
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
name: "Deploy Lion Azure Container Instances" | |
jobs: | |
build-and-push: | |
runs-on: ubuntu-latest | |
steps: | |
# https://docs.github.com/en/actions/publishing-packages/publishing-docker-images | |
- name: "Checkout GitHub Action" | |
uses: actions/checkout@main | |
- name: "Log in to Docker Hub" | |
uses: docker/[email protected] | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: "Build and push Docker image" | |
uses: docker/[email protected] | |
with: | |
context: . | |
push: true | |
tags: ${{ secrets.DOCKER_USERNAME }}/lion:${{ github.sha }} | |
## We used to deploy to azure, now we use railway.app. | |
## in case we ever decide to go back to azure (like if railway runs out of money) | |
## the below is what you'll need. | |
# deploy-on-azure: | |
# runs-on: ubuntu-latest | |
# needs: build-and-push | |
# steps: | |
# # https://learn.microsoft.com/en-us/azure/container-instances/container-instances-github-action | |
# - name: "Login via Azure CLI" | |
# uses: azure/login@v1 | |
# with: | |
# creds: ${{ secrets.AZURE_CREDENTIALS }} | |
# - name: "Deploy to Azure Container Instances" | |
# uses: "azure/aci-deploy@v1" | |
# with: | |
# resource-group: ${{ secrets.RESOURCE_GROUP }} | |
# dns-name-label: lionbot | |
# image: ${{ secrets.DOCKER_USERNAME }}/lion:${{ github.sha }} | |
# name: lion | |
# location: "east us" | |
# secure-environment-variables: | | |
# DISCORD_TOKEN="${{secrets.DISCORD_TOKEN}}" WEATHER_TOKEN="${{secrets.WEATHER_TOKEN}}" STOCK_API_TOKEN="${{secrets.STOCK_API_TOKEN}}" CRYPTO_API_TOKEN="${{secrets.CRYPTO_API_TOKEN}}" MONGO_URL="${{secrets.MONGO_URL}}" MONGO_DB_NAME="${{secrets.MONGO_DB_NAME}}" MONGO_USER_NAME="${{secrets.MONGO_USER_NAME}}" MONGO_USER_PASS="${{secrets.MONGO_USER_PASS}}" PAPERTRAIL_HOST="${{secrets.PAPERTRAIL_HOST}}" PAPERTRAIL_PORT="${{secrets.PAPERTRAIL_PORT}}" TWITTER_BEARER_TOKEN="${{secrets.TWITTER_BEARER_TOKEN}}" WOLFRAM_APPID="${{secrets.WOLFRAM_APPID}}" NODE_ENV="production" | |
# ports: "3000" | |
# cpu: 1 | |
# memory: 0.5 | |
# restart-policy: "Always" |