name: Build and Push to Quay.io on: push: branches: - main pull_request: jobs: build-and-push: runs-on: ubuntu-22.04 steps: - name: Check out the code uses: actions/checkout@v4 - name: Build the container image id: build-image uses: redhat-actions/buildah-build@v2 with: image: hdline.es tags: latest ${{ github.sha }} containerfiles: | ./Containerfile - name: Log in to Quay.io uses: redhat-actions/podman-login@v2 with: registry: quay.io username: ${{ secrets.QUAY_USERNAME }} password: ${{ secrets.QUAY_PASSWORD }} - name: Push to Quay.io uses: redhat-actions/push-to-registry@v2 with: image: hdlines tags: latest ${{ github.sha }} registry: quay.io/${{ secrets.QUAY_USERNAME }} - name: Print image URL run: echo "Image pushed to quay.io/${{ secrets.QUAY_USERNAME }}/hdlinees:${{ github.sha }}"