Skip to content

Commit 5763491

Browse files
committed
feat(workflows): Add production config template
Add preliminary version of production deploy config. Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
1 parent 6cb63d0 commit 5763491

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/production.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: 'Production deploy'
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
prepare-staging-branches:
8+
runs-on: ubuntu-22.04
9+
environment: deploydocker
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
with:
14+
repository: 'kernelci/kernelci-deploy'
15+
ref: 'main'
16+
fetch-depth: 0
17+
path: kernelci-deploy
18+
- name: Prepare necessary tools
19+
run: |
20+
export DEBIAN_FRONTEND=noninteractive
21+
sudo apt-get update
22+
sudo apt-get install -y python3-pip git
23+
pip3 install --upgrade pip
24+
git config --global user.email "kernelci@kernelci.org"
25+
git config --global user.name "Staging script"
26+
call-docker-build:
27+
needs: prepare-staging-branches
28+
uses: ./.github/workflows/docker_images.yml
29+
with:
30+
GIT_OWNER: 'kernelci'
31+
GIT_BRANCH: 'main'

0 commit comments

Comments
 (0)