diff --git a/.github/workflows/docker-build-push.yml b/.github/workflows/_docker-build-push.yml similarity index 91% rename from .github/workflows/docker-build-push.yml rename to .github/workflows/_docker-build-push.yml index 94384690d..2102857f3 100644 --- a/.github/workflows/docker-build-push.yml +++ b/.github/workflows/_docker-build-push.yml @@ -16,6 +16,10 @@ 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: @@ -23,6 +27,8 @@ jobs: 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 diff --git a/.github/workflows/da-indexer.yml b/.github/workflows/da-indexer.yml index c8afe0a7d..cbe1ced5e 100644 --- a/.github/workflows/da-indexer.yml +++ b/.github/workflows/da-indexer.yml @@ -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) @@ -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 diff --git a/.github/workflows/eth-bytecode-db.yml b/.github/workflows/eth-bytecode-db.yml index 305270785..60cfd9eff 100644 --- a/.github/workflows/eth-bytecode-db.yml +++ b/.github/workflows/eth-bytecode-db.yml @@ -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) @@ -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 diff --git a/.github/workflows/proxy-verifier.yml b/.github/workflows/proxy-verifier.yml index 3361fb072..b1ffb2a97 100644 --- a/.github/workflows/proxy-verifier.yml +++ b/.github/workflows/proxy-verifier.yml @@ -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) @@ -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 diff --git a/.github/workflows/sig-provider.yml b/.github/workflows/sig-provider.yml index 20b87e679..ffa498e1a 100644 --- a/.github/workflows/sig-provider.yml +++ b/.github/workflows/sig-provider.yml @@ -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) @@ -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 diff --git a/.github/workflows/smart-contract-verifier.yml b/.github/workflows/smart-contract-verifier.yml index dfdb921a0..6e10bd38a 100644 --- a/.github/workflows/smart-contract-verifier.yml +++ b/.github/workflows/smart-contract-verifier.yml @@ -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) @@ -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 diff --git a/.github/workflows/smart-guessr.yml b/.github/workflows/smart-guessr.yml index 52bfbbe06..c7019473d 100644 --- a/.github/workflows/smart-guessr.yml +++ b/.github/workflows/smart-guessr.yml @@ -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) @@ -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 diff --git a/.github/workflows/stats.yml b/.github/workflows/stats.yml index dd445e668..4e888afc2 100644 --- a/.github/workflows/stats.yml +++ b/.github/workflows/stats.yml @@ -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) @@ -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 diff --git a/.github/workflows/user-ops-indexer.yml b/.github/workflows/user-ops-indexer.yml index db70c0e29..94d6bc631 100644 --- a/.github/workflows/user-ops-indexer.yml +++ b/.github/workflows/user-ops-indexer.yml @@ -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) @@ -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 diff --git a/.github/workflows/visualizer.yml b/.github/workflows/visualizer.yml index 06d0fca5e..9e80c0eb0 100644 --- a/.github/workflows/visualizer.yml +++ b/.github/workflows/visualizer.yml @@ -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) @@ -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