Skip to content

Merge pull request #1098 from tradingstrategy-ai/frozen-keep-going #1257

Merge pull request #1098 from tradingstrategy-ai/frozen-keep-going

Merge pull request #1098 from tradingstrategy-ai/frozen-keep-going #1257

Workflow file for this run

# Build Dev Container image to be used with Microsoft Visual Studio Code and Github Codespaces
#
# See https://github.com/tradingstrategy-ai/getting-started
#
name: Dev Container Docker image
on:
push:
branches: [ master ]
tags: [ v* ]
pull_request:
branches: [ master ]
jobs:
devcontainer:
runs-on: ubuntu-latest
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/v')
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Scrape build info
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Run Devcontainer build
uses: devcontainers/ci@v0.3
with:
push: always
imageName: ghcr.io/tradingstrategy-ai/devcontainer
env: |
GIT_VERSION_TAG=${{ env.RELEASE_VERSION }}
GIT_COMMIT_MESSAGE=${{ github.event.head_commit.message }}
GIT_VERSION_HASH=${{ github.sha }}