This repository has been archived by the owner on Aug 7, 2024. It is now read-only.
Deploy to Caprover #1298
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: 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/[email protected] | |
with: | |
server: "${{ secrets.CAPROVER_SERVER }}" | |
app: biodrop | |
token: "${{ secrets.CAPROVER_TOKEN }}" | |
image: ghcr.io/eddiehubcommunity/biodrop:v${{ steps.package-version.outputs.current-version}} |