Skip to content

eggla 0.20.0

eggla 0.20.0 #17

Workflow file for this run

name: Build & Test Devcontainer Docker Image
on:
workflow_dispatch:
workflow_run:
workflows: "R-CMD-check"
branches: main
types: completed
release:
types: [published]
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}
cancel-in-progress: true
jobs:
build-devcontainer:
runs-on: ubuntu-latest
if: |
github.event_name == 'workflow_dispatch' ||
github.event_name == 'release' ||
(github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success')
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Determine Tag
id: tag
run: |
if [ "${{ github.ref_name }}" == "main" ]; then
echo "tag=devel" >> "$GITHUB_OUTPUT"
else
echo "tag=${{ github.ref_name }}" >> "$GITHUB_OUTPUT"
fi
- name: Build and run Dev Container on release
uses: devcontainers/[email protected]
if:
with:
subFolder: .github
imageName: ghcr.io/${{ github.repository }}
cacheFrom: ghcr.io/${{ github.repository }}
imageTag: ${{ steps.tag.outputs.tag }}
push: always
runCmd: Rscript /eggla-example.R