File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build and Push Docker Image
2+
3+ on :
4+ push :
5+ branches :
6+ - z5
7+ workflow_dispatch :
8+
9+ env :
10+ DOCKER_IMAGE : eeacms/reportek-base-dr-instance
11+ DOCKER_TAG : z5
12+
13+ jobs :
14+ build :
15+ name : Build Docker Image
16+ runs-on : ubuntu-latest
17+ steps :
18+ - name : Checkout repository
19+ uses : actions/checkout@v4
20+
21+ - name : Set up Docker Buildx
22+ uses : docker/setup-buildx-action@v3
23+
24+ - name : Login to Docker Hub
25+ uses : docker/login-action@v3
26+ with :
27+ username : ${{ secrets.DOCKERHUB_USERNAME }}
28+ password : ${{ secrets.DOCKERHUB_TOKEN }}
29+
30+ - name : Login to DHI Registry
31+ uses : docker/login-action@v3
32+ with :
33+ registry : dhi.io
34+ username : ${{ secrets.DOCKERHUB_USERNAME }}
35+ password : ${{ secrets.DOCKERHUB_TOKEN }}
36+
37+ - name : Build and push Docker image
38+ uses : docker/build-push-action@v5
39+ with :
40+ context : .
41+ push : true
42+ tags : ${{ env.DOCKER_IMAGE }}:${{ env.DOCKER_TAG }}
43+ no-cache : true
You can’t perform that action at this time.
0 commit comments