mirror of
https://github.com/Paris-est-Ludique/intranet.git
synced 2025-06-08 08:34:20 +02:00
💚 ficing github workflow inputs for build
This commit is contained in:
parent
e18e3415a1
commit
1d0489eb8e
23
.github/workflows/build.yml
vendored
23
.github/workflows/build.yml
vendored
@ -2,19 +2,20 @@ name: Build for production
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
envType:
|
inputs:
|
||||||
description: "Environment to deploy to"
|
envType:
|
||||||
required: true
|
description: "Environment to deploy to"
|
||||||
default: "prod"
|
required: true
|
||||||
type: choice
|
default: "prod"
|
||||||
options:
|
type: choice
|
||||||
- prod
|
options:
|
||||||
- staging
|
- prod
|
||||||
|
- staging
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment: ${{ github.event.inputs.envType }}
|
environment: ${{ inputs.envType }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Login to Scaleway Container Registry
|
- name: Login to Scaleway Container Registry
|
||||||
@ -24,6 +25,6 @@ jobs:
|
|||||||
password: ${{ secrets.SCALEWAY_API_KEY }}
|
password: ${{ secrets.SCALEWAY_API_KEY }}
|
||||||
registry: ${{ secrets.CONTAINER_REGISTRY_ENDPOINT }}
|
registry: ${{ secrets.CONTAINER_REGISTRY_ENDPOINT }}
|
||||||
- name: Build the Docker image
|
- name: Build the Docker image
|
||||||
run: docker build . -t ${{ secrets.CONTAINER_REGISTRY_ENDPOINT }}/fo-${{ github.event.inputs.envType }}
|
run: docker build . -t ${{ secrets.CONTAINER_REGISTRY_ENDPOINT }}/fo-${{ inputs.envType }}
|
||||||
- name: Push the Docker Image
|
- name: Push the Docker Image
|
||||||
run: docker push ${{ secrets.CONTAINER_REGISTRY_ENDPOINT }}/fo-${{ github.event.inputs.envType }}
|
run: docker push ${{ secrets.CONTAINER_REGISTRY_ENDPOINT }}/fo-${{ inputs.envType }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user