-
Notifications
You must be signed in to change notification settings - Fork 101
41 lines (37 loc) · 1005 Bytes
/
devcontainer-release.yml
File metadata and controls
41 lines (37 loc) · 1005 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
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 }}
PIP_OPTIONS: ${{ steps.release_tag.outputs.PIP_OPTIONS }}
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"
echo "IMAGE_TAG=$TAG,$XTAG" >> $GITHUB_OUTPUT
echo "PIP OPTIONS: $PIP_OPTIONS"
echo "PIP_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 }}