Skip to content

Feature/1307 check for business plan before uffizzi install #1386

Feature/1307 check for business plan before uffizzi install

Feature/1307 check for business plan before uffizzi install #1386

Workflow file for this run

name: Test, Lint, Build, and Publish Image
on:
push:
branches:
- qa
- develop
pull_request:
types: [opened,synchronize,reopened]
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
code-quality:
name: Test and Lint
uses: ./.github/workflows/code-quality.yml
build-and-push-some-branches:
runs-on: ubuntu-latest
needs:
- code-quality
if: ${{ github.ref_name == 'qa' || github.event_name == 'pull_request' }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
id: qemu
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Docker metadata
id: meta
uses: docker/metadata-action@v3
with:
images: uffizzi/cli
tags: |
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
type=ref,event=branch,enable=${{ github.ref_name == 'qa' || github.ref_name == 'develop' }}
type=ref,event=pr
- name: Build and Push Image to Docker Hub
uses: docker/build-push-action@v2
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64
- name: Update Docker Hub Description for Default Branch
uses: peter-evans/dockerhub-description@v2.4.3
if: ${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
repository: uffizzi/cli
notify:
needs:
- code-quality
- build-and-push-some-branches
if: ${{ always() }}
uses: ./.github/workflows/notify.yml
secrets: inherit