File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed
Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change 11name : Publish Devcontainer Feature
22
33on :
4+ workflow_call :
5+ inputs :
6+ version :
7+ description : ' The version to publish'
8+ required : true
9+ type : string
410 release :
511 types : [created]
612
1723 - name : Login to GitHub Container Registry
1824 run : echo "${{ secrets.WRITE_PACKAGES_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
1925
26+ - name : Add version to environment
27+ run : |
28+ VERSION="${{ inputs.version || github.ref_name }}"
29+ echo "VERSION=$VERSION" >> $GITHUB_ENV
30+
31+ - name : Add version to devcontainer-feature.json
32+ run : |
33+ jq --arg VERSION "${{ env.VERSION }}" '.version = $VERSION' src/cvmfs/devcontainer-feature.json > tmp.json
34+ mv tmp.json src/cvmfs/devcontainer-feature.json
35+
2036 - name : Publish Devcontainer Feature
21- run : devcontainer features publish src/cvmfs --namespace cvmfs-contrib
37+ run : devcontainer features publish --namespace ${{ github.actor }}/${{ github.repository }} .
38+
39+ - name : Build Devcontainer Feature
40+ run : devcontainer build --workspace-folder . --image-name test-cvmfs-feature --additional-features ghcr.io/${{ github.actor }}/${{ github.repository }}/cvmfs:${{ env.VERSION }}
You can’t perform that action at this time.
0 commit comments