1+ name : Build deploy utils
2+
3+ on :
4+ push :
5+ branches :
6+ - " master"
7+ release :
8+ types : [published, edited]
9+
10+ jobs :
11+ docker :
12+ runs-on : ubuntu-latest
13+ steps :
14+ -
15+ name : Checkout
16+ uses : actions/checkout@v3
17+ -
18+ name : Set up QEMU
19+ uses : docker/setup-qemu-action@v2
20+ -
21+ name : Set up Docker Buildx
22+ uses : docker/setup-buildx-action@v2
23+ -
24+ name : Login to Container Registry
25+ uses : docker/login-action@v2
26+ with :
27+ registry : ${{ secrets.REGISTRY }}
28+ username : ${{ secrets.REGISTRY_USERNAME }}
29+ password : ${{ secrets.REGISTRY_PASSWORD }}
30+ -
31+ name : Set Version
32+ run : echo "VERSION=$(tail -1 deploy/versions.txt)" >> $GITHUB_ENV
33+
34+ -
35+ name : Docker webhook metadata
36+ id : webhook_tls_getter
37+ uses : docker/metadata-action@v4
38+ with :
39+ images : ${{ secrets.REGISTRY }}/${{ secrets.REGISTRY_USERNAME }}/webhook-tls-getter
40+ tags : |
41+ type=raw,value=latest,enable={{is_default_branch}}
42+ type=raw,value=${{env.VERSION}},enable=${{ github.event_name == 'release' && github.event.action == 'published' }}
43+ -
44+ name : Build and push webhook-tls-getter
45+ uses : docker/build-push-action@v4
46+ with :
47+ context : ./deploy
48+ file : ./deploy/Dockerfile
49+ platforms : linux/amd64,linux/arm64
50+ push : ${{ github.event_name != 'pull_request' }}
51+ tags : ${{ steps.webhook_tls_getter.outputs.tags }}
52+
53+ -
54+ name : Docker delete-kubeplus-resources metadata
55+ id : delete_kubeplus_resources
56+ uses : docker/metadata-action@v4
57+ with :
58+ images : ${{ secrets.REGISTRY }}/${{ secrets.REGISTRY_USERNAME }}/delete-kubeplus-resources
59+ tags : |
60+ type=raw,value=latest,enable={{is_default_branch}}
61+ type=raw,value=${{env.VERSION}},enable=${{ github.event_name == 'release' && github.event.action == 'published' }}
62+
63+ -
64+ name : Build and push delete-kubeplus-resources
65+ uses : docker/build-push-action@v4
66+ with :
67+ context : ./deploy
68+ file : ./deploy/Dockerfile.cleanup
69+ platforms : linux/amd64,linux/arm64
70+ push : ${{ github.event_name != 'pull_request' }}
71+ tags : ${{ steps.delete_kubeplus_resources.outputs.tags }}
72+
73+ -
74+ name : Docker kubeconfiggenerator metadata
75+ id : kubeconfiggenerator
76+ uses : docker/metadata-action@v4
77+ with :
78+ images : ${{ secrets.REGISTRY }}/${{ secrets.REGISTRY_USERNAME }}/kubeconfiggenerator
79+ tags : |
80+ type=raw,value=latest,enable={{is_default_branch}}
81+ type=raw,value=${{env.VERSION}},enable=${{ github.event_name == 'release' && github.event.action == 'published' }}
82+
83+ -
84+ name : Build and push kubeconfiggenerator
85+ uses : docker/build-push-action@v4
86+ with :
87+ context : ./deploy
88+ file : ./deploy/Dockerfile.kubeconfiggenerator
89+ platforms : linux/amd64,linux/arm64
90+ push : ${{ github.event_name != 'pull_request' }}
91+ tags : ${{ steps.kubeconfiggenerator.outputs.tags }}
0 commit comments