Skip to content

Commit

Permalink
Add tag-version output to docker workflow. Rename docker workflow to …
Browse files Browse the repository at this point in the history
…start with '_' prefix (#950)

* Rename docker workflow to start with '_' prefix

* Fix tabulation

* Make use of renamed '_' prefixed docker workflow
  • Loading branch information
rimrakhimov authored Jun 26, 2024
1 parent dc84f2f commit 45749c4
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,19 @@ on:
service-name:
required: true
type: string
outputs:
tag-value:
description: 'A semver compatible version retrieved from the tag'
value: ${{ jobs.build-and-push.tag-value }}

jobs:
build-and-push:
runs-on: ubuntu-latest
timeout-minutes: 300
env:
IMAGE_NAME: '${{ inputs.registry }}/${{ inputs.organization }}/${{ inputs.service-name }}'
outputs:
tag-value: ${{ steps.regex.outputs.group2 }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/da-indexer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ on:
- da-indexer/**
- .github/workflows/da-indexer.yml
- .github/actions/deps/**
- .github/workflows/docker-build-push.yml
- .github/workflows/_*.yml
pull_request:
paths:
- da-indexer/**
- .github/workflows/da-indexer.yml
- .github/actions/deps/**
- .github/workflows/docker-build-push.yml
- .github/workflows/_*.yml

name: Test, lint and docker (da-indexer)

Expand Down Expand Up @@ -114,6 +114,6 @@ jobs:
always() &&
(needs.test.result == 'success' || needs.test.result == 'cancelled') &&
(needs.lint.result == 'success' || needs.lint.result == 'cancelled')
uses: ./.github/workflows/docker-build-push.yml
uses: ./.github/workflows/_docker-build-push.yml
with:
service-name: da-indexer
6 changes: 3 additions & 3 deletions .github/workflows/eth-bytecode-db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ on:
- eth-bytecode-db/**
- .github/workflows/eth-bytecode-db.yml
- .github/actions/deps/**
- .github/workflows/docker-build-push.yml
- .github/workflows/_*.yml
pull_request:
paths:
- eth-bytecode-db/**
- .github/workflows/eth-bytecode-db.yml
- .github/actions/deps/**
- .github/workflows/docker-build-push.yml
- .github/workflows/_*.yml

name: Test, lint and docker (eth-bytecode-db)

Expand Down Expand Up @@ -126,6 +126,6 @@ jobs:
always() &&
(needs.test.result == 'success' || needs.test.result == 'cancelled') &&
(needs.lint.result == 'success' || needs.lint.result == 'cancelled')
uses: ./.github/workflows/docker-build-push.yml
uses: ./.github/workflows/_docker-build-push.yml
with:
service-name: eth-bytecode-db
6 changes: 3 additions & 3 deletions .github/workflows/proxy-verifier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ on:
- proxy-verifier/**
- .github/workflows/proxy-verifier.yml
- .github/actions/deps/**
- .github/workflows/docker-build-push.yml
- .github/workflows/_*.yml
pull_request:
paths:
- proxy-verifier/**
- .github/workflows/proxy-verifier.yml
- .github/actions/deps/**
- .github/workflows/docker-build-push.yml
- .github/workflows/_*.yml

name: Test, lint and docker (proxy-verifier)

Expand Down Expand Up @@ -96,6 +96,6 @@ jobs:
always() &&
(needs.test.result == 'success' || needs.test.result == 'cancelled') &&
(needs.lint.result == 'success' || needs.lint.result == 'cancelled')
uses: ./.github/workflows/docker-build-push.yml
uses: ./.github/workflows/_docker-build-push.yml
with:
service-name: proxy-verifier
6 changes: 3 additions & 3 deletions .github/workflows/sig-provider.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ on:
- sig-provider/**
- .github/workflows/sig-provider.yml
- .github/actions/deps/**
- .github/workflows/docker-build-push.yml
- .github/workflows/_*.yml
pull_request:
paths:
- sig-provider/**
- .github/workflows/sig-provider.yml
- .github/actions/deps/**
- .github/workflows/docker-build-push.yml
- .github/workflows/_*.yml

name: Test, lint and docker (sig-provider)

Expand Down Expand Up @@ -96,6 +96,6 @@ jobs:
always() &&
(needs.test.result == 'success' || needs.test.result == 'cancelled') &&
(needs.lint.result == 'success' || needs.lint.result == 'cancelled')
uses: ./.github/workflows/docker-build-push.yml
uses: ./.github/workflows/_docker-build-push.yml
with:
service-name: sig-provider
6 changes: 3 additions & 3 deletions .github/workflows/smart-contract-verifier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ on:
- smart-contract-verifier/**
- .github/workflows/smart-contract-verifier.yml
- .github/actions/deps/**
- .github/workflows/docker-build-push.yml
- .github/workflows/_*.yml
pull_request:
paths:
- smart-contract-verifier/**
- .github/workflows/smart-contract-verifier.yml
- .github/actions/deps/**
- .github/workflows/docker-build-push.yml
- .github/workflows/_*.yml

name: Test, lint and docker (smart-contract-verifier)

Expand Down Expand Up @@ -96,6 +96,6 @@ jobs:
always() &&
(needs.test.result == 'success' || needs.test.result == 'cancelled') &&
(needs.lint.result == 'success' || needs.lint.result == 'cancelled')
uses: ./.github/workflows/docker-build-push.yml
uses: ./.github/workflows/_docker-build-push.yml
with:
service-name: smart-contract-verifier
6 changes: 3 additions & 3 deletions .github/workflows/smart-guessr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ on:
paths:
- smart-guessr/**
- .github/workflows/smart-guessr.yml
- .github/workflows/docker-build-push.yml
- .github/workflows/_*.yml
pull_request:
paths:
- smart-guessr/**
- .github/workflows/smart-guessr.yml
- .github/workflows/docker-build-push.yml
- .github/workflows/_*.yml

name: Test and docker (smart-guessr)

Expand Down Expand Up @@ -45,6 +45,6 @@ jobs:
if: |
always() &&
(needs.test.result == 'success' || needs.test.result == 'cancelled')
uses: ./.github/workflows/docker-build-push.yml
uses: ./.github/workflows/_docker-build-push.yml
with:
service-name: smart-guessr
6 changes: 3 additions & 3 deletions .github/workflows/stats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ on:
- stats/**
- .github/workflows/stats.yml
- .github/actions/deps/**
- .github/workflows/docker-build-push.yml
- .github/workflows/_*.yml
pull_request:
paths:
- stats/**
- .github/workflows/stats.yml
- .github/actions/deps/**
- .github/workflows/docker-build-push.yml
- .github/workflows/_*.yml

name: Test, lint and docker (stats)

Expand Down Expand Up @@ -115,6 +115,6 @@ jobs:
always() &&
(needs.test.result == 'success' || needs.test.result == 'cancelled') &&
(needs.lint.result == 'success' || needs.lint.result == 'cancelled')
uses: ./.github/workflows/docker-build-push.yml
uses: ./.github/workflows/_docker-build-push.yml
with:
service-name: stats
6 changes: 3 additions & 3 deletions .github/workflows/user-ops-indexer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ on:
- user-ops-indexer/**
- .github/workflows/user-ops-indexer.yml
- .github/actions/deps/**
- .github/workflows/docker-build-push.yml
- .github/workflows/_*.yml
pull_request:
paths:
- user-ops-indexer/**
- .github/workflows/user-ops-indexer.yml
- .github/actions/deps/**
- .github/workflows/docker-build-push.yml
- .github/workflows/_*.yml

name: Test, lint and docker (user-ops-indexer)

Expand Down Expand Up @@ -112,6 +112,6 @@ jobs:
always() &&
(needs.test.result == 'success' || needs.test.result == 'cancelled') &&
(needs.lint.result == 'success' || needs.lint.result == 'cancelled')
uses: ./.github/workflows/docker-build-push.yml
uses: ./.github/workflows/_docker-build-push.yml
with:
service-name: user-ops-indexer
6 changes: 3 additions & 3 deletions .github/workflows/visualizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ on:
- visualizer/**
- .github/workflows/visualizer.yml
- .github/actions/deps/**
- .github/workflows/docker-build-push.yml
- .github/workflows/_*.yml
pull_request:
paths:
- visualizer/**
- .github/workflows/visualizer.yml
- .github/actions/deps/**
- .github/workflows/docker-build-push.yml
- .github/workflows/_*.yml

name: Test, lint and docker (visualizer)

Expand Down Expand Up @@ -105,6 +105,6 @@ jobs:
always() &&
(needs.test.result == 'success' || needs.test.result == 'cancelled') &&
(needs.lint.result == 'success' || needs.lint.result == 'cancelled')
uses: ./.github/workflows/docker-build-push.yml
uses: ./.github/workflows/_docker-build-push.yml
with:
service-name: visualizer

0 comments on commit 45749c4

Please sign in to comment.