-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create 1>n workflow to be able to release then to build on multiple versions. Change base image to alpine.
- Loading branch information
1 parent
d1cd163
commit b66905b
Showing
7 changed files
with
99 additions
and
151 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Build and publish Docker images | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
release: | ||
description: Release name | ||
required: true | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
kubectl_version: | ||
- 1.19.3 | ||
- 1.18.10 | ||
- 1.17.13 | ||
- 1.16.15 | ||
- 1.15.12 | ||
- 1.14.10 | ||
- 1.13.12 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Publish to Docker Repository | ||
uses: elgohr/Publish-Docker-Github-Action@master | ||
env: | ||
KUBECTL_VERSION: ${{ matrix.kubectl_version }} | ||
with: | ||
name: germainlefebvre4/ns-killer | ||
buildargs: KUBECTL_VERSION | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_PASSWORD }} | ||
tags: "${{ github.event.inputs.release }}-kubectl${{ matrix.kubectl_version }},${{ github.event.inputs.release }}-${{ matrix.kubectl_version }},latest-kubectl${{ matrix.kubectl_version }},latest-${{ matrix.kubectl_version }},${{ matrix.kubectl_version }}" | ||
|
||
- name: Docker Hub Description | ||
uses: peter-evans/dockerhub-description@v2 | ||
with: | ||
repository: germainlefebvre4/ns-killer | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_PASSWORD2 }} | ||
readme-filepath: ./docs/dockerhub/README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Semantic Release Config | ||
run: | | ||
echo '{ | ||
"tagFormat":"v${version}", | ||
"plugins": [ | ||
"@semantic-release/commit-analyzer", | ||
"@semantic-release/release-notes-generator", | ||
"@semantic-release/changelog", | ||
"@semantic-release/github" | ||
] | ||
} | ||
'> .releaserc | ||
- name: Semantic Release | ||
uses: cycjimmy/semantic-release-action@v2 | ||
id: semantic | ||
with: | ||
branches: 'master' | ||
semantic_version: 17.1.1 | ||
extra_plugins: | | ||
@semantic-release/commit-analyzer@8.0.1 | ||
@semantic-release/release-notes-generator@9.0.0 | ||
@semantic-release/changelog@5.0.0 | ||
@semantic-release/github@7.0.7 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Workflow Dispatch | ||
uses: benc-uk/workflow-dispatch@v1.1 | ||
with: | ||
workflow: Build and publish Docker images | ||
token: ${{ secrets.PERSONAL_TOKEN }} | ||
inputs: '{ "release": "${{ steps.semantic.outputs.new_release_version }}" }' |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.