File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build and Push Docker Image with Buildx
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ - dev
8+ pull_request :
9+ branches :
10+ - main
11+ workflow_dispatch :
12+
13+ jobs :
14+ build :
15+ runs-on : ${{ vars.RUNNER_SCALE_SET }}
16+ steps :
17+ - name : Checkout
18+ uses : actions/checkout@v4
19+
20+ - name : Login to Docker Registry
21+ uses : docker/login-action@v3
22+ with :
23+ registry : ${{ vars.DOCKER_REGISTRY }}
24+ username : ${{ vars.DOCKER_USERNAME }}
25+ password : ${{ secrets.DOCKER_PASSWORD }}
26+
27+ - name : Set up Docker Buildx
28+ uses : docker/setup-buildx-action@v3
29+
30+ - name : Build and push
31+ uses : docker/build-push-action@v6
32+ with :
33+ push : true
34+ tags : ${{ vars.DOCKER_PROJECT }}/${{ vars.DOCKER_IMAGE }}:${{ github.sha }}
You can’t perform that action at this time.
0 commit comments