From 855d63e75d99b2929edd974b1bc39a61c299a92d Mon Sep 17 00:00:00 2001 From: itamar Date: Wed, 6 Nov 2024 15:06:37 -0500 Subject: [PATCH] add docker build workflow --- .github/workflows/docker-build.yml | 19 ++++++++++++++++++- charts/auctioneer/templates/deployment.yaml | 2 +- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 232ae7c07c..7107f7488c 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -12,6 +12,7 @@ on: required: false type: choice options: + - auctioneer - composer - conductor - sequencer @@ -39,6 +40,22 @@ jobs: run_checker: uses: ./.github/workflows/reusable-run-checker.yml + auctioneer: + needs: run_checker + if: needs.run_checker.outputs.run_docker == 'true' || (github.event_name == 'workflow_dispatch' && github.event.inputs.target == 'auctioneer') + uses: "./.github/workflows/reusable-docker-build.yml" + permissions: + contents: read + id-token: write + packages: write + with: + depot-project-id: abcdefghij # TODO: change this to the correct depot project ID + package-name: auctioneer + binary-name: auctioneer + tag: ${{ inputs.tag }} + force: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.target == 'auctioneer' }} + secrets: inherit + composer: needs: run_checker if: needs.run_checker.outputs.run_docker == 'true' || (github.event_name == 'workflow_dispatch' && github.event.inputs.target == 'composer') @@ -296,7 +313,7 @@ jobs: docker: if: ${{ always() && !cancelled() }} - needs: [composer, conductor, sequencer, sequencer-relayer, evm-bridge-withdrawer, cli, smoke-test, smoke-cli, ibc-bridge-test, ibc-no-native-asset-test, ibc-timeout-refund] + needs: [auctioneer, composer, conductor, sequencer, sequencer-relayer, evm-bridge-withdrawer, cli, smoke-test, smoke-cli, ibc-bridge-test, ibc-no-native-asset-test, ibc-timeout-refund] uses: ./.github/workflows/reusable-success.yml with: success: ${{ !contains(needs.*.result, 'failure') }} diff --git a/charts/auctioneer/templates/deployment.yaml b/charts/auctioneer/templates/deployment.yaml index 782492554f..c5490caa3d 100644 --- a/charts/auctioneer/templates/deployment.yaml +++ b/charts/auctioneer/templates/deployment.yaml @@ -1,7 +1,7 @@ apiVersion: apps/v1 kind: Deployment metadata: - name: {{ include "auctioneer.appName " . }} + name: {{ include "auctioneer.appName" . }} namespace: {{ include "auctioneer.namespace" . }} labels: {{ include "auctioneer.labels" . }}