-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from virtualstaticvoid/feat/build-multiple-r-v…
…ersions Add support for building multiple r versions
- Loading branch information
Showing
8 changed files
with
45 additions
and
32 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,29 +9,48 @@ on: | |
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: ghcr.io/${{ github.repository }} | ||
LATEST_VERSION: 4.4.2 | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
id-token: write | ||
|
||
strategy: | ||
matrix: | ||
r_version: | ||
- 4.2.3 | ||
- 4.3.3 | ||
- 4.4.2 | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/[email protected] | ||
|
||
- name: Build | ||
run: make --no-builtin-rules build | ||
run: make --no-builtin-rules build R_VERSION=${{ matrix.r_version }} | ||
|
||
- name: Unit Tests | ||
run: make --no-builtin-rules test | ||
run: make --no-builtin-rules test R_VERSION=${{ matrix.r_version }} | ||
|
||
- name: Log into registry | ||
- name: Log into registry ${{ env.REGISTRY }} | ||
if: github.event_name != 'pull_request' | ||
uses: docker/login-action@v2.0.0 | ||
uses: docker/login-action@v3.0.0 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Publish images | ||
if: github.event_name != 'pull_request' | ||
run: make --no-builtin-rules push | ||
run: make --no-builtin-rules push R_VERSION=${{ matrix.r_version }} | ||
|
||
- name: Publish latest images | ||
if: github.event_name != 'pull_request' && env.LATEST_VERSION == matrix.r_version | ||
run: make --no-builtin-rules push-latest R_VERSION=${{ matrix.r_version }} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
ARG BASE_IMAGE | ||
ARG BASE_IMAGE=provide-via-build-arg | ||
|
||
FROM $BASE_IMAGE | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
ARG BASE_IMAGE | ||
ARG BASE_IMAGE=provide-via-build-arg | ||
|
||
FROM $BASE_IMAGE | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
ARG BASE_IMAGE | ||
ARG BASE_IMAGE=provide-via-build-arg | ||
|
||
FROM $BASE_IMAGE | ||
|
||
|
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
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
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