Skip to content

Merge pull request #1242 from yaacov/add-status-to-jobs #46

Merge pull request #1242 from yaacov/add-status-to-jobs

Merge pull request #1242 from yaacov/add-status-to-jobs #46

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@v4
- 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