Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Deploy to Caprover #1299

Deploy to Caprover

Deploy to Caprover #1299

Workflow file for this run

name: Deploy to Caprover
on:
registry_package:
types: [published]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: check out the repo
uses: actions/checkout@v4
with:
ref: redirect
- name: get-npm-version
id: package-version
uses: martinbeentjes/npm-get-version-action@master
- name: output app version
run: echo "ghcr.io/eddiehubcommunity/biodrop:v${{ steps.package-version.outputs.current-version}}"
- name: version dockerfile
uses: docker/setup-buildx-action@v3
- name: log into GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
- name: Deploy Image to CapRrover
uses: caprover/deploy-from-github@v1.1.2
with:
server: "${{ secrets.CAPROVER_SERVER }}"
app: biodrop
token: "${{ secrets.CAPROVER_TOKEN }}"
image: ghcr.io/eddiehubcommunity/biodrop:v${{ steps.package-version.outputs.current-version}}