Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 39 additions & 39 deletions .github/workflows/devcontainer-ci.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
# name: CI - Devcontainer
# on:
# # Trigger the workflow only if PR is merged
# push:
# branches:
# - main
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@v3
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 }}
# - 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
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
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