-
Notifications
You must be signed in to change notification settings - Fork 5
49 lines (42 loc) · 1.29 KB
/
test-gitlab-selfhosted.yml
File metadata and controls
49 lines (42 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# 2024-05-02 10:50
name: Test Gitlab infra
on:
push:
paths:
- 'exercise-12/**'
- '.github/workflows/test-gitlab-selfhosted.yml'
schedule:
- cron: '30 10 * * 1'
jobs:
Test-run-gitlab-instance:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Start gitlab instance
timeout-minutes: 10
run: |
cd ${GITHUB_WORKSPACE}/exercise-12/gitlab
./start-gitlab.sh
- name: Configure git client
run: |
git config --global user.email "testbot@codium.team"
git config --global user.name "Test Bot"
- name: Configure project and keys
run: |
cd ${GITHUB_WORKSPACE}/exercise-12/gitlab
. ./gitlab_helper.sh
create_ssh_key
create_project
- name: Create gitlab pipeline
timeout-minutes: 3
run: |
cd ${GITHUB_WORKSPACE}/exercise-12/gitlab
. ./gitlab_helper.sh
configure_gitlab_git_ssh_command
cd ${GITHUB_WORKSPACE}/exercise-12/1-python
git init .
git add .
git commit -m "first commit"
git remote add origin ssh://git@127.0.0.1:2424/root/exercise-12.git
git push -u origin master
wait_for_pipeline_job_created