--- # ---------------------------------------------- # -- Build an image and push it to the registry # ---------------------------------------------- kind: pipeline type: docker name: Build the builder trigger: event: - push steps: - name: Prepare the builder image image: alpine privileged: true environment: GITEA_TOKEN: from_secret: GITEA_TOKEN BUILDAH_REG: git.badhouseplants.net/badhouseplants/badhouseplants-builder commands: - ./build - name: Cleanup image: git.badhouseplants.net/badhouseplants/badhouseplants-builder:latest environment: GITEA_TOKEN: from_secret: GITEA_TOKEN BUILDAH_REG: git.badhouseplants.net/badhouseplants/badhouseplants-builder commands: - cleanup