Skip to content

Merge pull request #19 from beat-forge/dependabot/npm_and_yarn/typesc… #16

Merge pull request #19 from beat-forge/dependabot/npm_and_yarn/typesc…

Merge pull request #19 from beat-forge/dependabot/npm_and_yarn/typesc… #16

Workflow file for this run

on:
push:
branches:
- main
paths:
- 'apps/web/**'
permissions:
contents: write
pull-requests: write
packages: write
jobs:
release-web:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
tags: ghcr.io/${{ github.repository_owner }}/web:nightly
file: apps/web/Dockerfile
labels: |
org.opencontainers.image.title=BeatForge Web
org.opencontainers.image.description=The frontend for BeatForge
org.opencontainers.image.url=https://beatforge.net
- name: Deploy to Staging
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: |
docker run -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtower --run-once