Bug fix: change container tag and PIP option for dev release builds (… #11
Workflow file for this run
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: Build netlab devcontainer | |
on: | |
push: | |
tags: [ release_* ] | |
env: | |
REGISTRY: ghcr.io | |
jobs: | |
setup: | |
runs-on: ubuntu-latest | |
outputs: | |
IMAGE_TAG: ${{ steps.release_tag.outputs.IMAGE_TAG }} | |
steps: | |
- name: Find release tag | |
id: release_tag | |
shell: bash | |
run: | | |
TAG=${GITHUB_REF_NAME#release_} | |
XTAG=latest | |
PIP_OPTIONS= | |
if [[ $TAG == *"dev"* ]]; then | |
XTAG=dev | |
PIP_OPTIONS=--pre | |
fi | |
echo "IMAGE_TAG=$TAG,$XTAG\nPIP_OPTIONS=$PIP_OPTIONS" >> $GITHUB_OUTPUT | |
build: | |
needs: [ setup ] | |
uses: ./.github/workflows/devcontainer-build.yml | |
with: | |
docker-tags: ${{ needs.setup.outputs.IMAGE_TAG }} | |
pip-options: ${{ needs.setup.outputs.PIP_OPTIONS }} | |
secrets: | |
GHCR_TOKEN: ${{ secrets.GHCR_TOKEN }} |