Skip to content

Commit

Permalink
ci: add cos-uploader to build scripts
Browse files Browse the repository at this point in the history
Signed-off-by: Alessandro Pomponio <[email protected]>
  • Loading branch information
AlessandroPomponio committed Jul 30, 2024
1 parent 295f5fc commit 2138ed7
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/push-updated-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ on:
branches:
- master
paths:
- 'src/dataset-operator/**'
- "src/dataset-operator/**"
- "src/cos-uploader/**"

jobs:
dataset-operator:
Expand Down Expand Up @@ -45,3 +46,22 @@ jobs:
run: |
cd src/generate-keys
./build_multiarch_generate_keys.sh -p ${{ vars.REGISTRY_URL }}
cos-uploader:
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 COS Uploader
run: |
cd src/cos-uploader
./build_multiarch_cos_uploader.sh -p ${{ vars.REGISTRY_URL }}
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ jobs:
./build_and_push_multiarch_csinfs.sh ${{ vars.REGISTRY_URL }} ${{ steps.vars.outputs.sha_short }}
docker buildx prune
- name: Build and push COS uploader image
run: |
cd src/cos-uploader
./build_multiarch_cos_uploader.sh -p ${{ vars.REGISTRY_URL }} ${{ github.ref_name }}
- name: Install Helm
uses: azure/setup-helm@v3

Expand Down

0 comments on commit 2138ed7

Please sign in to comment.