Skip to content

Commit 18199cc

Browse files
authored
Create docker-image.yml
1 parent 92b49dd commit 18199cc

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
8+
jobs:
9+
docker:
10+
runs-on: ubuntu-latest
11+
steps:
12+
-
13+
name: Set up QEMU
14+
uses: docker/setup-qemu-action@v1
15+
-
16+
name: Set up Docker Buildx
17+
uses: docker/setup-buildx-action@v1
18+
-
19+
name: Login to DockerHub
20+
uses: docker/login-action@v1
21+
with:
22+
username: ${{ secrets.DOCKERHUB_USERNAME }}
23+
password: ${{ secrets.DOCKERHUB_TOKEN }}
24+
-
25+
name: Build and push
26+
id: docker_build
27+
uses: docker/build-push-action@v2
28+
with:
29+
push: true
30+
tags: pokeapi/graphiql:latest
31+
-
32+
name: Image digest
33+
run: echo ${{ steps.docker_build.outputs.digest }}

0 commit comments

Comments
 (0)