File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 11name : Self-host Docker Image
22on :
3- push :
4- branches : [ main ]
53 workflow_dispatch :
4+ inputs :
5+ image_version :
6+ description : " Docker image version (e.g. 1.2.3)"
7+ required : true
8+ type : string
69
710permissions :
811 contents : read
912
10- env :
11- DOCKER_IMAGE_VERSION : ${{ vars.SELF_HOST_DOCKER_IMAGE_VERSION }}
12-
1313jobs :
1414 build :
1515 runs-on : ubuntu-latest
1616 environment : self-host
17+ env :
18+ DOCKER_IMAGE_VERSION : ${{ inputs.image_version }}
1719
1820 steps :
1921 - name : Checkout
3335
3436 - name : Build and push (multi-arch)
3537 run : |
38+ echo "Building version: ${DOCKER_IMAGE_VERSION}"
3639 docker buildx build \
3740 --platform linux/amd64,linux/arm64 \
3841 --build-arg GITHUB_TOKEN=${{ secrets.SPARROW_GITHUB_TOKEN }} \
3942 -t ssparrowapi/sparrow-proxy:self-host-${DOCKER_IMAGE_VERSION} \
4043 -t ssparrowapi/sparrow-proxy:latest \
41- --push .
44+ --push .
You can’t perform that action at this time.
0 commit comments