-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:waldronbios2/cunybios2
- Loading branch information
Showing
2 changed files
with
19 additions
and
25 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 |
---|---|---|
|
@@ -8,10 +8,13 @@ env: | |
IMAGE_NAME: ${{ github.repository }} | ||
jobs: | ||
job1: | ||
runs-on: ubuntu-18.04 | ||
runs-on: ubuntu-20.04 | ||
container: rocker/verse:4.2.0 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Checkout repository and submodules | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
||
# System dependencies | ||
- name: Install apt dependencies | ||
|
@@ -42,18 +45,6 @@ jobs: | |
key: ${{ runner.os }}-r-1-${{ hashFiles('.github/depends.Rds') }} | ||
restore-keys: ${{ runner.os }}-r-1- | ||
|
||
- name: Create safe.directory | ||
run: | | ||
git config --global --add safe.directory /__w/cunybios2/cunybios2 | ||
git config --global --add safe.directory /home/rstudio | ||
- name: Checkout submodules | ||
uses: srt32/[email protected] | ||
|
||
- name: What's in submodules | ||
run: | | ||
git submodule update --remote --merge | ||
# This lets us augment with additional dependencies | ||
- name: Install system dependencies | ||
if: runner.os == 'Linux' | ||
|
@@ -96,11 +87,19 @@ jobs: | |
email: [email protected] | ||
|
||
- name: Deploy ð | ||
uses: JamesIves/[email protected] | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: gh-pages # The branch the action should deploy to. | ||
folder: docs # The folder the action should deploy. | ||
workspace: $GITHUB_WORKSPACE | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
BRANCH: gh-pages # The branch the action should deploy to. | ||
FOLDER: docs # The folder the action should deploy. | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_PAT }} | ||
|
||
# Build and push Docker image with Buildx (don't push on PR) | ||
# https://github.com/docker/build-push-action | ||
|
@@ -110,7 +109,7 @@ jobs: | |
with: | ||
context: . | ||
push: true | ||
tags: user/app:latest | ||
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest | ||
|
||
# Sign the resulting Docker image digest except on PRs. | ||
# This will only write to the public Rekor transparency log when the Docker | ||
|
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