# ---------------------------------------------- # -- Build an image and push it to the registry # ---------------------------------------------- kind: pipeline type: docker name: Build the builder trigger: event: - push image-anchor: &image-anchor image: git.badhouseplants.net/badhouseplants/badhouseplants-builder:9fabf0ce6eab3a9a9da15b2791e8282afc05ee0b steps: - <<: *image-anchor name: Build and push the docker image privileged: true environment: GITEA_TOKEN: from_secret: GITEA_TOKEN commands: - build-container - <<: *image-anchor name: Cleanup registry environment: GITEA_TOKEN: from_secret: GITEA_TOKEN commands: - cleanup