File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed
Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build & Push the Python Builder Image
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ docker-tag :
7+ description : ' Docker tag for push (e.g. 2.0.0)'
8+ required : true
9+
10+ env :
11+ GOLANG_VERSION : 1.24.7
12+
13+ jobs :
14+ operator :
15+ runs-on : ubuntu-latest
16+ steps :
17+ - uses : actions/checkout@v4
18+
19+ - uses : actions/setup-go@v3
20+ with :
21+ go-version : ${{ env.GOLANG_VERSION }}
22+
23+ - name : Set up Docker Buildx
24+ uses : docker/setup-buildx-action@v3
25+
26+ - name : Login to DockerHub
27+ uses : docker/login-action@v3
28+ with :
29+ username : ${{ secrets.DOCKER_USERNAME }}
30+ password : ${{ secrets.DOCKER_PASSWORD }}
31+
32+ - name : Set default docker tag for builds from master
33+ id : docker-tag
34+ run : |
35+ USER_INPUT="${{ github.event.inputs.docker-tag }}"
36+ echo "value=${USER_INPUT:-latest}" >> $GITHUB_OUTPUT
37+
38+ - name : Build and push
39+ working-directory : ./python-builder/
40+ run : |
41+ make DOCKER_IMAGE_VERSION=${{ steps.docker-tag.outputs.value }} build_docker_image
42+ make DOCKER_IMAGE_VERSION=${{ steps.docker-tag.outputs.value }} push_to_registry
You can’t perform that action at this time.
0 commit comments