feat(workflows): enhance reusable Docker build workflow with new inputs and tag handling #154
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Example Docker Build & Deploy | ||
| permissions: | ||
| contents: read | ||
| packages: write | ||
| attestations: write | ||
| id-token: write | ||
| on: | ||
| workflow_dispatch: | ||
| pull_request: | ||
| branches: [main] | ||
| jobs: | ||
| extract-version: | ||
| runs-on: ubuntu-22.04 | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
| - name: Extract Version | ||
| id: extract | ||
| uses: ./.github/actions/extract-version-from-tag | ||
| with: | ||
| version-file: .github/workflows/VERSION.example | ||
| outputs: | ||
| version: ${{ steps.extract.outputs.version }} | ||
| git_tag: ${{ steps.extract.outputs.git_tag }} | ||
| build-test-deploy: | ||
| uses: ./.github/workflows/reusable_docker-build-deploy.yaml | ||
|
Check failure on line 27 in .github/workflows/example_docker-test.yaml
|
||
| needs: extract-version | ||
| with: | ||
| jf-project: test | ||
| image-name: test-image | ||
| tag: artifact.aerospike.io/test-container-dev-local/test-image:${{ needs.extract-version.outputs.version }} | ||
| context: ./.github/workflows/execute-build/test_apps/hi | ||
| file: ./.github/workflows/execute-build/test_apps/hi/Dockerfile | ||
| jf-build-name: test-container | ||