File tree Expand file tree Collapse file tree 3 files changed +67
-2
lines changed Expand file tree Collapse file tree 3 files changed +67
-2
lines changed Original file line number Diff line number Diff line change 1+ name : " CI: docker build"
2+
3+ on : [pull_request]
4+
5+ jobs :
6+
7+ build :
8+
9+ runs-on : ubuntu-latest
10+
11+ steps :
12+ - uses : actions/checkout@v2
13+ - name : Build the Docker image
14+ run : docker build . --file Dockerfile --tag webdevops/kube-bootstrap-token-manager:$(date +%s)
Original file line number Diff line number Diff line change 1+ name : " Release: docker"
2+
3+ on :
4+ schedule :
5+ - cron : ' 0 6 * * 1'
6+ push :
7+ branches :
8+ - ' **'
9+ tags :
10+ - ' *.*.*'
11+
12+ jobs :
13+ build :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - uses : actions/checkout@v2
17+ - name : Docker meta
18+ id : docker_meta
19+ uses : crazy-max/ghaction-docker-meta@v1
20+ with :
21+ images : webdevops/kube-bootstrap-token-manager,quay.io/webdevops/kube-bootstrap-token-manager
22+ # tag-sha: true
23+
24+ - name : Set up QEMU
25+ uses : docker/setup-qemu-action@v1
26+
27+ - name : Set up Docker Buildx
28+ uses : docker/setup-buildx-action@v1
29+
30+ - name : Login to DockerHub
31+ uses : docker/login-action@v1
32+ with :
33+ username : ${{ secrets.DOCKERHUB_USERNAME }}
34+ password : ${{ secrets.DOCKERHUB_TOKEN }}
35+
36+ - name : Login to Quay
37+ uses : docker/login-action@v1
38+ with :
39+ registry : quay.io
40+ username : ${{ secrets.QUAY_USERNAME }}
41+ password : ${{ secrets.QUAY_TOKEN }}
42+
43+ - name : Build and push
44+ uses : docker/build-push-action@v2
45+ with :
46+ context : .
47+ file : ./Dockerfile
48+ platforms : linux/amd64
49+ push : ${{ github.event_name != 'pull_request' }}
50+ tags : ${{ steps.docker_meta.outputs.tags }}
51+ labels : ${{ steps.docker_meta.outputs.labels }}
Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ Kubernetes node bootstrap token manager
22========================================
33
44[ ![ license] ( https://img.shields.io/github/license/webdevops/kube-bootstrap-token-manager.svg )] ( https://github.com/webdevops/kube-bootstrap-token-manager/blob/master/LICENSE )
5- [ ![ Docker ] ( https://img.shields.io/docker/cloud/automated/ webdevops/kube- bootstrap-token-manager )] ( https://hub.docker.com/r/webdevops/kube-bootstrap-token-manager/ )
6- [ ![ Docker Build Status ] ( https://img.shields.io/docker/cloud/build/ webdevops/kube- bootstrap-token-manager )] ( https://hub.docker.com/r /webdevops/kube-bootstrap-token-manager/ )
5+ [ ![ DockerHub ] ( https://img.shields.io/badge/DockerHub- webdevops%2Fkube-- bootstrap-- token-- manager-blue )] ( https://hub.docker.com/r/webdevops/kube-bootstrap-token-manager/ )
6+ [ ![ Quay.io ] ( https://img.shields.io/badge/Quay.io- webdevops%2Fkube-- bootstrap-- token-- manager-blue )] ( https://quay.io/repository /webdevops/kube-bootstrap-token-manager )
77
88Manager for Node bootstrap tokens for Kubernetes.
99
You can’t perform that action at this time.
0 commit comments