Skip to content

Commit 390cacf

Browse files
committed
Docker publish github action
1 parent a274f59 commit 390cacf

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/docker-publish.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# This workflow will upload Docker image when a release is created
2+
# For more information see: https://github.com/marketplace/actions/docker-build-push-action
3+
4+
name: Publish docker image
5+
6+
on:
7+
workflow_dispatch:
8+
release:
9+
types:
10+
- created
11+
12+
jobs:
13+
publish:
14+
steps:
15+
- name: Publish image
16+
uses: mr-smithers-excellent/docker-build-push@v5
17+
with:
18+
image: p1c2u/openapi-spec-validator
19+
registry: docker.io
20+
username: ${{ secrets.DOCKER_USERNAME }}
21+
password: ${{ secrets.DOCKER_PASSWORD }}

0 commit comments

Comments
 (0)