Merge pull request #455 from redhat-openshift-ecosystem/ISV-4161 #85
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: Build playbook image for tekton | |
on: | |
push: | |
branches: [ upstream-community ] | |
workflow_dispatch: | |
jobs: | |
playbook_image_tekton: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v1 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Login to Quay | |
uses: docker/login-action@v1 | |
with: | |
registry: quay.io | |
username: ${{ secrets.QUAY_PLAYBOOK_IMAGE_USERNAME }} | |
password: ${{ secrets.QUAY_PLAYBOOK_IMAGE_TOKEN }} | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Generate version for playbook image | |
id: playbook-image-version | |
run: ./upstream/playbook_version.sh ${{ github.ref }} | |
- name: Print version | |
run: echo "Image version is ${{ steps.playbook-image-version.outputs.image_version }}-tekton tag ${{ steps.playbook-image-version.outputs.image_tag }}-tekton" | |
- name: Build and push | |
id: docker_build | |
uses: docker/build-push-action@v2 | |
with: | |
push: true | |
tags: quay.io/operator_testing/operator-test-playbooks:${{ steps.playbook-image-version.outputs.image_version }}-tekton,quay.io/operator_testing/operator-test-playbooks:${{ steps.playbook-image-version.outputs.image_tag }}-tekton | |
file: Dockerfile.tekton | |
- name: Image digest | |
run: echo ${{ steps.docker_build.outputs.digest }} |