File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed
Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Main branch build
2+
3+ on :
4+ push :
5+ - branches:['main']
6+
7+ jobs :
8+ docker-build :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - name : Checkout
12+ uses : actions/checkout@v4
13+
14+ - name : Login to Docker Hub
15+ uses : docker/login-action@v3
16+ with :
17+ username : ${{ secrets.DOCKER_USER }}
18+ password : ${{ secrets.DOCKER_TOKEN }}
19+
20+ - name : Extract metadata (tags, labels) for Docker
21+ id : meta
22+ uses : docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
23+ with :
24+ images : bdv1982/tt-rss-mysql
25+
26+ - name : Build and push Docker image
27+ id : push
28+ uses : docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
29+ with :
30+ context : .
31+ file : ./Dockerfile
32+ push : true
33+ tags : ${{ steps.meta.outputs.tags }}
34+ labels : ${{ steps.meta.outputs.labels }}
35+
36+
You can’t perform that action at this time.
0 commit comments