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

Commit 1dcf8fc

Browse files
committed
fix: login into ghcr
1 parent 63c0ede commit 1dcf8fc

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,26 @@ jobs:
88
build-and-deploy:
99
runs-on: ubuntu-latest
1010

11-
strategy:
12-
matrix:
13-
node-version: [18.x]
14-
1511
steps:
12+
- name: check out the repo
13+
uses: actions/checkout@v4
14+
with:
15+
ref: redirect
16+
- name: get-npm-version
17+
id: package-version
18+
uses: martinbeentjes/npm-get-version-action@master
19+
- name: version dockerfile
20+
uses: docker/setup-buildx-action@v3
21+
- name: log into GitHub Container Registry
22+
uses: docker/login-action@v3
23+
with:
24+
registry: ghcr.io
25+
username: ${{ github.repository_owner }}
26+
password: ${{ secrets.CR_PAT }}
1627
- name: Deploy Image to CapRrover
1728
uses: caprover/[email protected]
1829
with:
1930
server: "${{ secrets.CAPROVER_SERVER }}"
2031
app: biodrop
2132
token: "${{ secrets.CAPROVER_TOKEN }}"
22-
image: ghcr.io/eddiehubcommunity/biodrop:latest
33+
image: ghcr.io/eddiehubcommunity/biodrop:v${{ steps.package-version.outputs.current-version}}

0 commit comments

Comments
 (0)