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 : Publish nightly to Docker Hub
2+
3+ on :
4+ push :
5+ branches : [ nightly ] # збірка на кожен пуш у nightly
6+ workflow_dispatch : {} # можливість стартувати вручну
7+
8+ jobs :
9+ build-and-push :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - name : Checkout
14+ uses : actions/checkout@v4
15+
16+ - name : Set up QEMU
17+ uses : docker/setup-qemu-action@v3
18+
19+ - name : Set up Buildx
20+ uses : docker/setup-buildx-action@v3
21+
22+ - name : Login to Docker Hub
23+ uses : docker/login-action@v3
24+ with :
25+ username : ${{ secrets.DOCKERHUB_USERNAME }}
26+ password : ${{ secrets.DOCKERHUB_TOKEN }}
27+
28+ - name : Docker meta
29+ id : meta
30+ uses : docker/metadata-action@v5
31+ with :
32+ images : dmi3yy/evolution-cms
33+ tags : |
34+ type=raw,value=nightly
35+ type=raw,value=nightly-{{date 'YYYYMMDD'}}
36+ type=sha,format=short
37+
38+ - name : Build and push
39+ uses : docker/build-push-action@v6
40+ with :
41+ context : .
42+ file : ./Dockerfile # якщо Dockerfile не в корені — зміни шлях
43+ platforms : linux/amd64,linux/arm64
44+ push : true
45+ tags : ${{ steps.meta.outputs.tags }}
46+ labels : ${{ steps.meta.outputs.labels }}
47+ # build-args: | # якщо треба, додай аргументи збірки
48+ # APP_ENV=production
You can’t perform that action at this time.
0 commit comments