File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build and push
2+
3+ on :
4+ push :
5+ branches : [ "master", "dev" ]
6+ pull_request :
7+ branches : [ "master", "dev" ]
8+
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : Login to Docker Hub
14+ - uses : docker/login-action@v3
15+ - with :
16+ username : ${{ secrets.DOCKERHUB_USERNAME }}
17+ password : ${{ secrets.DOCKERHUB_TOKEN }}
18+
19+ - name : Set up Docker Buildx
20+ - uses : docker/setup-buildx-action@v3
21+
22+ - uses : actions/checkout@v4
23+ - name : Build the Docker image
24+ run : docker build . --file Dockerfile --tag my-image-name:$(date +%s)
25+
26+ - name : Build and push
27+ uses : docker/build-push-action@v6
28+ with :
29+ push : true
30+ tags : ${{ secrets.DOCKERHUB_USERNAME }}/ssh-key-authority:latest-${{ vars.GITHUB_REF_NAME }}
You can’t perform that action at this time.
0 commit comments