Caching of the Docker image from the devcontainer #2
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
name: 'build' | |
on: # rebuild any PRs and main branch changes | |
pull_request: | |
push: | |
branches: | |
- main | |
- benchmarking | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout (GitHub) | |
uses: actions/checkout@v3 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
# See https://github.com/devcontainers/ci/blob/main/docs/github-action.md | |
- name: Build and run dev container task | |
uses: devcontainers/[email protected] | |
with: | |
imageName: ghcr.io/PRL-PRG/r-compile-server | |
# Change this to be your CI task/script | |
runCmd: mvn --batch-mode --update-snapshots test |