Silent a warning #1233
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
# 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/[email protected] | |
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 }} |