Merge pull request #1250 from yaacov/add-status-icons-for-true-and-false #48
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
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 |