File tree Expand file tree Collapse file tree 2 files changed +33
-0
lines changed
Expand file tree Collapse file tree 2 files changed +33
-0
lines changed 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+ - master # main o master, dipende dal tuo branch principale
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - name : Checkout repository
14+ uses : actions/checkout@v4
15+
16+ - name : Log in to DockerHub
17+ uses : docker/login-action@v3
18+ with :
19+ username : ${{ secrets.DOCKERHUB_USERNAME }}
20+ password : ${{ secrets.DOCKERHUB_TOKEN }}
21+
22+ - name : Build and push Docker image
23+ uses : docker/build-push-action@v6
24+ with :
25+ push : true
26+ tags : morrolinux/morrolinux-it:latest
27+
Original file line number Diff line number Diff line change 1+ FROM php:8.2-apache
2+
3+ COPY . /var/www/html/
4+ RUN chown -R www-data:www-data /var/www/html
5+ EXPOSE 80
6+
You can’t perform that action at this time.
0 commit comments