File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed
Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change 1+ name : ci
2+
3+ on :
4+ push :
5+ branches :
6+ - ' master'
7+ - ' docker-images'
8+ tags :
9+ - ' *.*.*'
10+
11+ jobs :
12+ docker :
13+ runs-on : ubuntu-latest
14+ steps :
15+ -
16+ name : Checkout
17+ uses : actions/checkout@v2
18+ submodules : ' true'
19+ -
20+ name : Docker meta
21+ id : meta
22+ uses : docker/metadata-action@v3
23+ with :
24+ # list of Docker images to use as base name for tags
25+ images : |
26+ pokeapi/pokeapi
27+ -
28+ name : Set up QEMU
29+ uses : docker/setup-qemu-action@v1
30+ -
31+ name : Set up Docker Buildx
32+ uses : docker/setup-buildx-action@v1
33+ -
34+ name : Login to DockerHub
35+ if : github.event_name != 'pull_request'
36+ uses : docker/login-action@v1
37+ with :
38+ username : ${{ secrets.DOCKERHUB_USERNAME_NARAMSIM }}
39+ password : ${{ secrets.DOCKERHUB_TOKEN_NARAMSIM }}
40+ -
41+ name : Build and push
42+ id : docker_build
43+ uses : docker/build-push-action@v2
44+ with :
45+ push : true
46+ tags : ${{ steps.meta.outputs.tags }}
47+ labels : ${{ steps.meta.outputs.labels }}
48+ -
49+ name : Image digest
50+ run : echo ${{ steps.docker_build.outputs.digest }}
You can’t perform that action at this time.
0 commit comments