Skip to content

Commit 0584f06

Browse files
author
Zhengyi Lai
authored
Create docker.yml
1 parent b564133 commit 0584f06

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/docker.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Docker
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
tags: ['*']
7+
8+
jobs:
9+
10+
build:
11+
name: Build
12+
runs-on: ubuntu-latest
13+
steps:
14+
15+
- name: Check out code
16+
uses: actions/checkout@v2
17+
18+
- name: Build and push Docker images
19+
uses: docker/build-push-action@v1.1.0
20+
with:
21+
username: ${{ secrets.DOCKERHUB_USERNAME }}
22+
password: ${{ secrets.DOCKERHUB_PASSWORD }}
23+
repository: openpitrix/generate-kubeconfig
24+
dockerfile: ./Dockerfile
25+
tag_with_ref: true
26+
push: true

0 commit comments

Comments
 (0)