Skip to content

Commit

Permalink
build: update dockerfile for ghcr
Browse files Browse the repository at this point in the history
  • Loading branch information
anujsinha3 committed Feb 28, 2025
1 parent 4d09366 commit f19c7a4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
paths:
- "Dockerfile"
- "**/*.R"
pull_request:
branches:
- main

jobs:
build-and-push:
Expand Down Expand Up @@ -38,7 +41,7 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
file: .devcontainer/Dockerfile.R
file: Dockerfile
tags: |
ghcr.io/${{ github.repository_owner }}/${{ env.PACKAGE }}:${{ env.VERSION }}
ghcr.io/${{ github.repository_owner }}/${{ env.PACKAGE }}:latest
Expand Down Expand Up @@ -71,5 +74,6 @@ jobs:
- name: Run Container Tests
run:
docker run --rm ghcr.io/${{ github.repository_owner }}/${{ env.PACKAGE
}}:${{env.VERSION }} R -e "devtools::test()"
docker run --rm --entrypoint "R" ghcr.io/${{ github.repository_owner
}}/${{ env.PACKAGE }}:${{env.VERSION }} -e
"library(biodiversityhorizons)"

0 comments on commit f19c7a4

Please sign in to comment.