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

Commit

Permalink
fix: login into ghcr
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiejaoude committed Jul 1, 2024
1 parent 63c0ede commit 1dcf8fc
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,26 @@ jobs:
build-and-deploy:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]

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: 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:latest
image: ghcr.io/eddiehubcommunity/biodrop:v${{ steps.package-version.outputs.current-version}}

0 comments on commit 1dcf8fc

Please sign in to comment.