From c77eeb8ef702ef77a1df64e995bca57666fe3e5d Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Tue, 24 Jan 2023 12:49:34 +0100 Subject: [PATCH] Update build'n'push; --- .drone.yml | 46 +++++++++++++++++++++++++ .github/workflows/container-stable.yaml | 10 +++--- 2 files changed, 51 insertions(+), 5 deletions(-) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..bb32e67 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,46 @@ +--- +kind: pipeline +type: kubernetes +name: Containeraztion latest +steps: +- name: Docker build + resources: + limits: + cpu: 100 + memory: 2048MiB + when: + branch: + - main + privileged: true + settings: + registry: git.badhouseplants.net + username: allanger + password: + from_secret: GITEA_TOKEN + repo: git.badhouseplants.net/badhouseplants/clever-install + tags: latest + platforms: + - linux/arm64 + - linux/amd64 + +steps: +- name: Docker build + image: thegeeklab/drone-docker-buildx + trigger: + event: + - tag + resources: + limits: + cpu: 100 + memory: 2048MiB + privileged: true + settings: + registry: git.badhouseplants.net + username: allanger + password: + from_secret: GITEA_TOKEN + repo: git.badhouseplants.net/badhouseplants/clever-install + tags: latest + platforms: + - linux/arm64 + - linux/amd64 diff --git a/.github/workflows/container-stable.yaml b/.github/workflows/container-stable.yaml index 7dff83d..546a34b 100644 --- a/.github/workflows/container-stable.yaml +++ b/.github/workflows/container-stable.yaml @@ -1,10 +1,10 @@ --- name: "Stable container" -on: - push: - branches: - - main +# on: + # push: + # branches: + # - main jobs: containerization: @@ -33,7 +33,7 @@ jobs: password: ${{ secrets.CR_PAT }} - name: Build - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v3 with: builder: ${{ steps.buildx.outputs.name }} context: .