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 : Docker Image CI
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ pull_request :
7+ branches : [ main ]
8+
9+ jobs :
10+
11+ build :
12+
13+ runs-on : ubuntu-latest
14+
15+ steps :
16+ -
17+ name : Checkout
18+ uses : actions/checkout@v2
19+ -
20+ name : Login to Docker Hub
21+ uses : docker/login-action@v1
22+ with :
23+ username : ${{ secrets.DOCKER_HUB_USERNAME }}
24+ password : ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
25+ -
26+ name : Set up QEMU
27+ uses : docker/setup-qemu-action@v1
28+ -
29+ name : Set up Docker Buildx
30+ id : buildx
31+ uses : docker/setup-buildx-action@v1
32+ with :
33+ install : true
34+ -
35+ name : Available platforms
36+ run : echo ${{ steps.buildx.outputs.platforms }}
37+ -
38+ name : Build and push
39+ uses : docker/build-push-action@v2
40+ with :
41+ context : .
42+ platforms : linux/amd64,linux/arm64
43+ file : ./anemone-app/Dockerfile
44+ push : true
45+ tags : ${{ secrets.DOCKER_HUB_USERNAME }}/anemone-app:latest
You can’t perform that action at this time.
0 commit comments