File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build and Push Docker image
2+ on :
3+ push :
4+ branches :
5+ - master
6+ pull_request :
7+ branches :
8+ - master
9+
10+ jobs :
11+ build-and-push :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - name : Check out the code
15+ uses : actions/checkout@v2
16+ - name : Login Dockerhub
17+ uses : docker/login-action@v3.2.0
18+ with :
19+ # Username used to log against the Docker registry
20+ username : ${{ secrets.DOCKER_USERNAME }}
21+ # Password or personal access token used to log against the Docker registry
22+ password : ${{ secrets.DOCKER_PASSWORD }}
23+ - name : Set up Docker Buildx
24+ uses : docker/setup-buildx-action@v1
25+
26+ - name : Build and push
27+ uses : docker/build-push-action@v2
28+ with :
29+ context : .
30+ file : Dockerfile
31+ push : true
32+ tags : 7ommymerlin/notify-scheduler:latest
You can’t perform that action at this time.
0 commit comments