-
Notifications
You must be signed in to change notification settings - Fork 355
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update stable tag when the latest version release branch is updated
Signed-off-by: Ankur Kothiwal <[email protected]>
- Loading branch information
Showing
2 changed files
with
36 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
on: | ||
push: | ||
# Sequence of patterns matched against refs/tags | ||
branches: | ||
- 'v*' | ||
|
||
name: KubeArmor stable release | ||
|
||
jobs: | ||
build: | ||
name: Create KubeArmor Release - 18.04 | ||
if: github.repository == 'kubearmor/kubearmor' | ||
runs-on: ubuntu-18.04 | ||
timeout-minutes: 20 | ||
steps: | ||
- name: Checkout KubeArmor code | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: main | ||
|
||
- name: Pull Docker Hub image | ||
run: | | ||
value=`cat STABLE-RELEASE` | ||
docker pull docker.io/kubearmor/kubearmor:$value | ||
docker image tag kubearmor/kubearmor:$value kubearmor/kubearmor:stable | ||
- name: Login to Docker Hub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_AUTHTOK }} | ||
|
||
- name: Push KubeArmor images to Docker | ||
run: ./KubeArmor/build/push_kubearmor.sh stable |