Implement storage snapshot mapping (#106) #29
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
on: | |
push: | |
branches: | |
- main | |
tags: | |
- "v*" | |
name: Create and push image | |
jobs: | |
build-and-push-image: | |
if: ${{ github.repository == 'kubevirt/csi-driver' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: build image | |
shell: bash | |
env: | |
QUAY_PWD: ${{secrets.QUAY_TOKEN}} | |
REGISTRY: "quay.io/kubevirt" | |
TARGET_NAME: "kubevirt-csi-driver" | |
TAG: ${{ github.ref_name }} | |
run: | | |
# for branch (only main is supported), use "latest" for image tag. For tags, use the tag name. | |
if [[ "${TAG}" == "main" ]]; then | |
TAG=latest | |
fi | |
echo "${QUAY_PWD}" | docker login -u="kubevirt+csidriver" quay.io --password-stdin | |
make image-build | |
make image-push |