Skip to content

Merge pull request #1102 from liranr23/bump_version #22

Merge pull request #1102 from liranr23/bump_version

Merge pull request #1102 from liranr23/bump_version #22

name: Release image
on:
push:
branches:
- 'release-v*'
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Increase File Descriptors Limit
run: ulimit -n 4096
- name: Checkout
uses: actions/checkout@v3
- name: Log in to Quay.io
uses: docker/login-action@v3
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_TOKEN }}
- name: Extract branch name
shell: bash
run: echo "BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/} | sed 's/\//-/g')" >> $GITHUB_ENV
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
file: ./build/Containerfile
push: true
tags: quay.io/kubev2v/forklift-console-plugin:${{ env.BRANCH_NAME }}
- name: Logout from Quay.io
run: docker logout quay.io