File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed
Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Dockerize Profiles
2+
3+ on :
4+ push :
5+ branches : [feat-profiles]
6+ pull_request :
7+ types : [opened, synchronize, reopened]
8+ branches : [feat-profiles]
9+ workflow_dispatch :
10+
11+ jobs :
12+ dockerize-profiles :
13+ runs-on : ubuntu-latest
14+
15+ steps :
16+ - name : Checkout the repo
17+ uses : actions/checkout@v2
18+ - name : Set up QEMU
19+ uses : docker/setup-qemu-action@v2
20+ - name : Set up Docker Buildx
21+ uses : docker/setup-buildx-action@v2
22+ - name : Log in to Docker Hub
23+ uses : docker/login-action@v3
24+ with :
25+ username : ${{ vars.DOCKERHUB_USERNAME }}
26+ password : ${{ secrets.DOCKERHUB_TOKEN }}
27+
28+ - name : Extract metadata (tags, labels) for Docker
29+ id : meta
30+ uses : docker/metadata-action@v5
31+ with :
32+ images : appwrite/console-cloud
33+ tags : |
34+ type=ref,event=branch,prefix=branch-
35+ type=ref,event=pr
36+ type=sha,prefix=sha-
37+ type=raw,value=gh-${{ github.run_id}}
38+ flavor : |
39+ latest=false
40+
41+ - name : Build and push Docker image
42+ id : push
43+ uses : docker/build-push-action@v6
44+ with :
45+ context : .
46+ push : true
47+ platforms : linux/amd64,linux/arm64
48+ tags : ${{ steps.meta.outputs.tags }}
49+ labels : ${{ steps.meta.outputs.labels }}
You can’t perform that action at this time.
0 commit comments