Merge pull request #452 from redhat-openshift-ecosystem/4.15-image-fix #707
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 | |
on: | |
push: | |
branches: [ upstream-community ] | |
workflow_dispatch: | |
jobs: | |
playbook_image: | |
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 }} tag ${{ steps.playbook-image-version.outputs.image_tag }}" | |
- 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 }},quay.io/operator_testing/operator-test-playbooks:${{ steps.playbook-image-version.outputs.image_tag }} | |
- name: Image digest | |
run: echo ${{ steps.docker_build.outputs.digest }} |