-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: new action for pushing CSI images
Signed-off-by: SRIKUMAR VENUGOPAL <[email protected]>
- Loading branch information
1 parent
6ce95c3
commit 08473cd
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Build and push multiarch images | ||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- "src/csi-s3/**" | ||
- "src/csi-nfs/**" | ||
|
||
jobs: | ||
csi-s3: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clone Datashim | ||
uses: actions/checkout@v2 | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- name: Login to Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ${{ vars.REGISTRY_URL }} | ||
username: ${{ secrets.REGISTRY_USERNAME }} | ||
password: ${{ secrets.REGISTRY_PASSWORD }} | ||
- name: Build and push CSI-S3 images | ||
run: | | ||
cd src/csi-s3 | ||
./build_and_push_multiarch_csis3.sh -p ${{ vars.REGISTRY_URL }} | ||
csi-nfs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clone Datashim | ||
uses: actions/checkout@v2 | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- name: Login to Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ${{ vars.REGISTRY_URL }} | ||
username: ${{ secrets.REGISTRY_USERNAME }} | ||
password: ${{ secrets.REGISTRY_PASSWORD }} | ||
- name: Build and push CSI-NFS images | ||
run: | | ||
cd src/csi-driver-nfs | ||
./build_and_push_multiarch_csinfs.sh -p ${{ vars.REGISTRY_URL }} |