From 2138ed7b89f0a694b5a03bfce62b512aec880314 Mon Sep 17 00:00:00 2001 From: Alessandro Pomponio Date: Tue, 30 Jul 2024 16:45:10 +0200 Subject: [PATCH] ci: add cos-uploader to build scripts Signed-off-by: Alessandro Pomponio --- .github/workflows/push-updated-images.yml | 22 +++++++++++++++++++++- .github/workflows/release.yml | 5 +++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/.github/workflows/push-updated-images.yml b/.github/workflows/push-updated-images.yml index 5cae103b..aea0146f 100644 --- a/.github/workflows/push-updated-images.yml +++ b/.github/workflows/push-updated-images.yml @@ -4,7 +4,8 @@ on: branches: - master paths: - - 'src/dataset-operator/**' + - "src/dataset-operator/**" + - "src/cos-uploader/**" jobs: dataset-operator: @@ -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 }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a6b87d81..d6a69db4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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