Skip to content

Bug fix: change container tag and PIP option for dev release builds (… #11

Bug fix: change container tag and PIP option for dev release builds (…

Bug fix: change container tag and PIP option for dev release builds (… #11

---
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 }}