Skip to content

Commit

Permalink
add docker build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
itamarreif committed Nov 7, 2024
1 parent e81543e commit 855d63e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
19 changes: 18 additions & 1 deletion .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
required: false
type: choice
options:
- auctioneer
- composer
- conductor
- sequencer
Expand Down Expand Up @@ -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')
Expand Down Expand Up @@ -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') }}
2 changes: 1 addition & 1 deletion charts/auctioneer/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -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" . }}
Expand Down

0 comments on commit 855d63e

Please sign in to comment.