55 types : [released]
66 workflow_dispatch :
77 inputs :
8- TAG_NAME :
9- description : " Tag name for this image"
10- required : true
11- default : " eoapi-k8s-stac-browser"
128 STAC_BROWSER_VERSION :
13- description : " STAC Browser version to build (e.g. v3.3.4 )"
9+ description : " STAC Browser version to build (e.g. v4.0.0 )"
1410 required : true
15- default : " v3.3.4 "
11+ default : " v4.0.0 "
1612
1713env :
1814 REGISTRY : ghcr.io
19- TAG_NAME : ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }}
15+ STAC_BROWSER_VERSION : ${{ github.event.inputs.STAC_BROWSER_VERSION || github.event.release.tag_name }}
2016
2117jobs :
2218 build-and-push :
@@ -28,12 +24,12 @@ jobs:
2824 uses : actions/checkout@v6
2925 with :
3026 repository : radiantearth/stac-browser
31- ref : ${{ github.event.inputs .STAC_BROWSER_VERSION }}
27+ ref : ${{ env .STAC_BROWSER_VERSION }}
3228
3329 - name : Set environment variables
3430 run : |
3531 {
36- echo "VERSION=${TAG_NAME #v}"
32+ echo "VERSION=${STAC_BROWSER_VERSION #v}"
3733 echo "IMAGE_NAME=$REGISTRY/${GITHUB_REPOSITORY,,}/stac-browser"
3834 echo "COMMITED_AT=$(git show -s --format=%cI "$(git rev-parse HEAD)")"
3935 echo "REVISION=$(git rev-parse --short HEAD)"
4945 org.opencontainers.image.version=v${{ env.VERSION }}
5046 org.opencontainers.image.maintainer=${{ github.repository_owner }}
5147 tags : |
52- type=semver,pattern={{version}},value=v${{ env.VERSION }}
48+ type=raw,value=${{ env.VERSION }}
49+ type=raw,value=latest
5350
5451 - name : Log in to the GitHub container registry
5552 uses : docker/login-action@v3
6966 pathPrefix=/browser/
7067 tags : ${{ steps.meta.outputs.tags }}
7168 labels : ${{ steps.meta.outputs.labels }}
72- cache-from : type=registry,ref=${{ env.IMAGE_NAME }}:edge
69+ cache-from : type=registry,ref=${{ env.IMAGE_NAME }}:latest
7370 cache-to : type=inline
0 commit comments