Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

chore: workflows #15

Merged
merged 3 commits into from
Dec 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions .github/workflows/production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,7 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.ref }}

jobs:
build-api:
name: Build API
runs-on: ubuntu-latest
steps:
- name: Use autodevops build and register
uses: socialgouv/workflows/actions/build-image@v1
with:
imagePackage: api
token: ${{ secrets.GITHUB_TOKEN }}
environment: prod
dockerfile: ./api/Dockerfile
dockercontext: ./api
dockerbuildargs: |
PRODUCTION=true

kontinuous:
name: "Deploy on Kubernetes 🐳"
needs: [build-api]
uses: socialgouv/workflows/.github/workflows/use-ks-gh-production.yaml@v1
secrets: inherit
17 changes: 17 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Release

on:
workflow_dispatch:
push:
branches: [master, alpha, beta, next]

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: socialgouv/workflows/actions/semantic-release@v1
with:
github-token: ${{ secrets.SOCIALGROOVYBOT_BOTO_PAT }}
author-name: ${{ secrets.SOCIALGROOVYBOT_NAME }}
author-email: ${{ secrets.SOCIALGROOVYBOT_EMAIL }}
8 changes: 8 additions & 0 deletions .kontinuous/env/prod/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,11 @@ api:
envFrom:
- secretRef:
name: api

jobs:
runs:
build-api:
use: build
with:
buildArgs:
PRODUCTION="true"
Loading