Skip to content

Velero Plugin For vSphere CICD Pipeline #3591

Velero Plugin For vSphere CICD Pipeline

Velero Plugin For vSphere CICD Pipeline #3591

Workflow file for this run

name: Velero Plugin For vSphere CICD Pipeline
on:
push:
pull_request:
schedule:
- cron: '0 0 * * *'
jobs:
cicd:
name: Run CICD
runs-on: ubuntu-latest
steps:
- name: Check out the code of velero-plugin-for-vsphere
uses: actions/checkout@v2
with:
path: src/github.com/vmware-tanzu/velero-plugin-for-vsphere
- name: Download essential GVDDK libraries
run: |
cd src/github.com/vmware-tanzu/velero-plugin-for-vsphere && mkdir .libs && cd .libs
wget --quiet https://gvddk-libs.s3-us-west-1.amazonaws.com/VMware-vix-disklib-7.0.2-17696664.x86_64.tar.gz
tar xzf VMware-vix-disklib-7.0.2-17696664.x86_64.tar.gz
chmod 644 $(find vmware-vix-disklib-distrib/lib64/ -type f)
- name: Make CI
env:
GOPATH: ${GITHUB_WORKSPACE}
run: |
cd src/github.com/vmware-tanzu/velero-plugin-for-vsphere
make ci
# The following code are commented out because push image will fail due to invalid username/password for docker hub
#- name: Build the plugin and push images to docker hub
# if: github.event_name == 'push' && github.repository == 'vmware-tanzu/velero-plugin-for-vsphere'
# env:
# GOPATH: ${GITHUB_WORKSPACE}
# run: |
# cd src/github.com/vmware-tanzu/velero-plugin-for-vsphere
# echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
# make push