# This workflow will perform a test whenever there # is some change in code done to ensure that the changes # are not buggy and we are getting the desired output. name: Test Build and Push on: [ push, workflow_dispatch, pull_request_target ] env: IMAGE_NAME: myimage IMAGE_REGISTRY: quay.io IMAGE_TAGS: v1 ${{ github.sha }} jobs: build: name: Push image to Quay.io runs-on: ubuntu-20.04 steps: # Checkout push-to-registry action github repository - name: Checkout Push to Registry action uses: actions/checkout@v2 - name: Build Image using Docker run: | docker build -t ${{ env.IMAGE_NAME }}:v1 -<