From dcf1399334e277287a78065efb89e7dbf314832e Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Sat, 5 Mar 2022 21:59:25 +0100 Subject: [PATCH] :robot: Add arm repository See: https://github.com/c3os-io/c3os/issues/17 --- .github/workflows/build-arm.yaml | 62 ++++++++++++++++++++++++++++++++ values/arm.yaml | 1 + 2 files changed, 63 insertions(+) create mode 100644 .github/workflows/build-arm.yaml create mode 100644 values/arm.yaml diff --git a/.github/workflows/build-arm.yaml b/.github/workflows/build-arm.yaml new file mode 100644 index 0000000..45aeaae --- /dev/null +++ b/.github/workflows/build-arm.yaml @@ -0,0 +1,62 @@ +name: Build +concurrency: + group: "master-arm-build" + #cancel-in-progress: true + +on: + push: + branches: [ main, test ] +jobs: + + build: + runs-on: ubuntu-latest + env: + ARCH: amd64 + steps: + - uses: actions/checkout@v2 + - run: | + git fetch --prune --unshallow + mkdir build + - name: Set up QEMU + uses: docker/setup-qemu-action@master + with: + platforms: all + - name: Set up Docker Buildx + id: buildx + uses: docker/setup-buildx-action@master + - name: Download meta 🔧 + uses: luet-lab/luet-github-action@master + with: + FINAL_REPO: quay.io/c3os/packages-arm + REPOSITORY_TYPE: docker + downloadAllMeta: true + downloadFromList: true + downloadMeta: true + - name: Build packages 🔧 + uses: luet-lab/luet-github-action@master + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} + with: + build: true + fromIndex: true + onlyMissing: true + buildx: true + platform: linux/arm/v7 + FINAL_REPO: quay.io/c3os/packages-arm + DOCKER_USERNAME: ${{ secrets.QUAY_USERNAME }} + DOCKER_PASSWORD: ${{ secrets.QUAY_PASSWORD }} + DOCKER_ENDPOINT: quay.io + REPOSITORY_TYPE: docker + pushFinalImages: true + pushCache: true + values: values/arm.yaml + - name: Create repo 🔧 + uses: luet-lab/luet-github-action@master + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} + with: + FINAL_REPO: quay.io/c3os/packages-arm + DOCKER_USERNAME: ${{ secrets.QUAY_USERNAME }} + DOCKER_PASSWORD: ${{ secrets.QUAY_PASSWORD }} + DOCKER_ENDPOINT: quay.io + REPOSITORY_TYPE: docker + createRepo: true + pushCache: true diff --git a/values/arm.yaml b/values/arm.yaml new file mode 100644 index 0000000..f6bcb09 --- /dev/null +++ b/values/arm.yaml @@ -0,0 +1 @@ +arch: "arm" \ No newline at end of file