Merge pull request #528 from k8s-infra-cherrypick-robot/cherry-pick-5… #14
Workflow file for this run
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
# This is a GitHub workflow defining a set of jobs with a set of steps. | |
# ref: https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions | |
# | |
# This test is meant to verify that our Dockerfile can build successfully when | |
# changed on the CPU architectures we have made it support being built on. | |
# | |
name: Build ibm-powervs-block-csi-driver-centos-base | |
on: | |
push: | |
paths: | |
- "build/base/Dockerfile" | |
- ".github/workflows/docker-build.yml" | |
jobs: | |
docker: | |
name: Build ibm-powervs-block-csi-driver-centos-base | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v2 | |
# Action reference: https://github.com/docker/setup-qemu-action | |
- name: Set up QEMU (for docker buildx) | |
uses: docker/setup-qemu-action@v1 | |
# Action reference: https://github.com/docker/setup-buildx-action | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
# Action reference: https://github.com/docker/login-action | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
# Convert repository owner name into lowercase letters | |
# Action reference: https://github.com/ASzc/change-string-case-action | |
- id: repository_owner | |
name: lower case repository owner name | |
uses: ASzc/change-string-case-action@v1 | |
with: | |
string: ${{ github.repository_owner }} | |
# Action reference: https://github.com/docker/build-push-action | |
- name: Build container | |
uses: docker/build-push-action@v2 | |
with: | |
context: ./build/base | |
platforms: linux/amd64,linux/ppc64le | |
target: centos-base | |
push: true | |
tags: ghcr.io/${{ steps.repository_owner.outputs.lowercase }}/ibm-powervs-block-csi-driver-centos-base:v8.0.0 |