Merge pull request #1639 from Anselmoo/feature/notebook-refactor #889
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: CI - Devcontainer | |
on: | |
# Trigger the workflow only if PR is merged | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout (GitHub) | |
uses: actions/checkout@v4 | |
- name: Login to GitHub Container Registry | |
uses: docker/[email protected] | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and use devcontainer | |
uses: devcontainers/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BUILD_NUMBER: ${{ github.run_id }} | |
IS_PR: ${{ github.head_ref }} | |
BRANCH: ${{ github.ref }} | |
with: | |
imageName: ghcr.io/anselmoo/spectrafit-devcontainer | |
imageTag: ${{ steps.set_image_tag.outputs.image_tag }} | |
runCmd: | | |
python --version | |
push: ${{ steps.set_image_push_option.outputs.image_push_option }} | |
eventFilterForPush: | | |
push | |
pull_request | |
env: | | |
BUILD_NUMBER | |
IS_CI=1 | |
IS_PR | |
BRANCH |