{% macro resources(registry_url) -%} - name: status-rust-xwin type: gitea-status source: access_token: ((forgejo_api_key)) url: ((forgejo_url)) owner: ((repo_owner)) repo: ((repo_name)) type: generic context: build/rust-xwin description: Building image rust-xwin - name: image-rust-xwin type: registry-image icon: docker source: repository: "{{ registry_url }}/rust-xwin" tag: latest - name: image-rust-xwin-ci type: registry-image icon: docker source: repository: "{{ registry_url }}/rust-xwin-ci" tag: latest {% endmacro %} {% macro jobs(registry_url) -%} - name: rust-xwin serial: true on_success: put: state-success resource: status-rust-xwin no_get: true params: state: success sha: ((.:git_sha)) on_failure: put: state-failure resource: status-rust-xwin no_get: true params: state: failure sha: ((.:git_sha)) plan: - get: repo trigger: true - load_var: git_sha file: repo/.git/ref - put: state-pending resource: status-rust-xwin no_get: true params: state: pending sha: ((.:git_sha)) - task: build-rust-xwin file: repo/tasks/build-image.yml privileged: true vars: context: repo/images/rust-xwin target: rust-xwin dockerfile: '' params: REGISTRY_MIRRORS: {{ registry_url }} output_mapping: image: image-rust-xwin - task: build-rust-xwin-ci file: repo/tasks/build-image.yml privileged: true vars: context: repo/images/rust-xwin target: rust-xwin-ci dockerfile: '' params: REGISTRY_MIRRORS: {{ registry_url }} output_mapping: image: image-rust-xwin-ci - in_parallel: steps: - put: image-rust-xwin inputs: detect params: { image: image-rust-xwin/image.tar } no_get: true - put: image-rust-xwin-ci inputs: detect params: { image: image-rust-xwin-ci/image.tar } no_get: true {% endmacro %} {# vim: ft=yaml-jinja #}