We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a91cae commit 6ff3294Copy full SHA for 6ff3294
.github/workflows/docker.yml
@@ -0,0 +1,29 @@
1
+name: Docker image
2
+on:
3
+ push:
4
+ tags:
5
+ - '*'
6
+jobs:
7
+ docker:
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - name: Checkout SCM
11
+ uses: actions/[email protected]
12
+ - name: Set up Docker Buildx
13
+ uses: docker/setup-buildx-action@v1
14
+ - name: Login to DockerHub
15
+ uses: docker/login-action@v1
16
+ with:
17
+ username: ${{ secrets.DOCKER_HUB_USERNAME }}
18
+ password: ${{ secrets.DOCKER_HUB_PASSWORD }}
19
+ - name: Set Git tag in output
20
+ id: vars
21
+ run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
22
+ - name: Build & Push Docker image
23
+ uses: docker/build-push-action@v2
24
25
+ context: .
26
+ push: true
27
+ tags: |
28
+ openapitools/openapi-diff:${{ steps.vars.outputs.tag }}
29
+ openapitools/openapi-diff:latest
0 commit comments