build api #56
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
| # SPDX-License-Identifier: AGPL-3.0-or-later | |
| name: build api | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| build-version: | |
| description: "Explicit Fluxer CalVer build version (YYYY.MDD.MICRO, UTC HHMMSS without leading zeroes) to use instead of automatic UTC clock allocation" | |
| type: string | |
| required: false | |
| default: "" | |
| permissions: | |
| actions: read | |
| contents: write | |
| packages: write | |
| jobs: | |
| approve: | |
| name: approve build release | |
| permissions: {} | |
| runs-on: ubuntu-24.04 | |
| environment: builds | |
| timeout-minutes: 5 | |
| steps: | |
| - name: approved | |
| run: echo "Build release approved." | |
| image: | |
| needs: approve | |
| uses: ./.github/workflows/_build-image.yaml | |
| secrets: inherit | |
| with: | |
| image: fluxer-api | |
| dockerfile: fluxer_api/Dockerfile | |
| build-version: ${{ inputs['build-version'] }} |