Skip to content

Merge pull request #54 from kubearmor/update-stable-122 #3

Merge pull request #54 from kubearmor/update-stable-122

Merge pull request #54 from kubearmor/update-stable-122 #3

name: ci-stable-release
on:
push:
branches: [main]
paths:
- "STABLE-RELEASE"
jobs:
push-stable-version:
name: Create kubearmor-relay stable release
if: github.repository == 'kubearmor/kubearmor-relay-server'
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v3
- name: Install regctl
run: |
curl -L https://github.com/regclient/regclient/releases/latest/download/regctl-linux-amd64 >regctl
chmod 755 regctl
mv regctl /usr/local/bin
- name: Check install
run: regctl version
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_AUTHTOK }}
- name: Generate the stable version of kubearmor-relay in Docker Hub
run: |
STABLE_VERSION=`cat STABLE-RELEASE`
regctl image copy kubearmor/kubearmor-relay-server:$STABLE_VERSION kubearmor/kubearmor-relay-server:stable --digest-tags