Skip to content

Commit 401521e

Browse files
committed
feat(init): initial release
1 parent bd221b9 commit 401521e

File tree

17 files changed

+709
-0
lines changed

17 files changed

+709
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
{
3+
"name": "Ubuntu",
4+
"image": "mcr.microsoft.com/devcontainers/base:noble",
5+
"features": {
6+
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
7+
"ghcr.io/devcontainers/features/github-cli:1": {},
8+
"ghcr.io/devcontainers/features/node:1": {},
9+
"ghcr.io/guiyomh/features/vim:0": {}
10+
},
11+
"customizations": {
12+
"vscode": {
13+
"extensions": [
14+
"Mattickx.copilotignore-vscode",
15+
"GitHub.copilot-chat",
16+
"GitHub.copilot"
17+
]
18+
}
19+
}
20+
}

.gitginore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/copilot
2+
/dev

.github/workflows/build.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Build Image
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
release:
8+
types: [released]
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: false
13+
14+
permissions: {}
15+
16+
jobs:
17+
docker:
18+
name: Docker
19+
runs-on: ubuntu-latest
20+
permissions:
21+
contents: read
22+
packages: write
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v4
26+
- name: Docker meta
27+
id: meta
28+
uses: docker/metadata-action@v5
29+
with:
30+
images: |
31+
ghcr.io/${{ github.repository }}
32+
tags: |
33+
type=schedule
34+
type=semver,pattern={{version}}
35+
type=semver,pattern={{major}}.{{minor}}
36+
type=semver,pattern={{major}}
37+
type=ref,event=branch
38+
type=ref,event=pr
39+
type=sha
40+
- name: Set up Docker Buildx
41+
uses: docker/setup-buildx-action@v3
42+
- name: Login to Docker Hub
43+
uses: docker/login-action@v3
44+
with:
45+
registry: ghcr.io
46+
username: ${{ github.repository_owner }}
47+
password: ${{ secrets.GITHUB_TOKEN }}
48+
- name: Build and push
49+
uses: docker/build-push-action@v6
50+
with:
51+
context: docker
52+
push: true
53+
tags: ${{ steps.meta.outputs.tags }}
54+
labels: ${{ steps.meta.outputs.labels }}
55+
cache-from: type=gha
56+
cache-to: type=gha,mode=max

.github/workflows/release.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Release Application
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
workflow_dispatch:
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: false
15+
16+
permissions: {}
17+
18+
jobs:
19+
lint:
20+
name: Lint
21+
runs-on: ubuntu-latest
22+
permissions:
23+
contents: read
24+
packages: read
25+
statuses: write
26+
steps:
27+
- name: Checkout code
28+
uses: actions/checkout@v4
29+
with:
30+
fetch-depth: 0
31+
- name: Lint
32+
uses: super-linter/super-linter@v8
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
FILTER_REGEX_EXCLUDE: CHANGELOG.md
36+
37+
release:
38+
name: Release
39+
runs-on: ubuntu-latest
40+
needs:
41+
- lint
42+
- build
43+
permissions:
44+
contents: read
45+
steps:
46+
- name: Checkout
47+
uses: actions/checkout@v4
48+
with:
49+
persist-credentials: false
50+
- uses: actions/create-github-app-token@v2
51+
id: token
52+
with:
53+
app-id: ${{ vars.APP_ID_SEMREL }}
54+
private-key: ${{ secrets.APP_KEY_SEMREL }}
55+
- name: Semantic release
56+
id: semrel
57+
uses: cycjimmy/semantic-release-action@v4
58+
with:
59+
dry_run: ${{ github.event_name != 'push' }}
60+
ci: true
61+
env:
62+
GITHUB_TOKEN: ${{ steps.token.outputs.token }}

.releaserc.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"branches": [
3+
"main"
4+
],
5+
"tagFormat": "${version}",
6+
"plugins": [
7+
"@semantic-release/commit-analyzer",
8+
"@semantic-release/release-notes-generator",
9+
[
10+
"@semantic-release/changelog",
11+
{
12+
"changelogFile": "CHANGELOG.md"
13+
}
14+
],
15+
[
16+
"@semantic-release/git",
17+
{
18+
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}",
19+
"assets": [
20+
"CHANGELOG.md"
21+
]
22+
}
23+
],
24+
"@semantic-release/github"
25+
]
26+
}

copilot/.env

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Minimum environment variables required for the GitHub runner setup
2+
# Set RUNNER_REG_TOKEN to a registration token with appropriate scope
3+
RUNNER_GITHUB_URL=https://github.com
4+
RUNNER_ORG=myorg
5+
RUNNER_LABELS=docker,linux,x64,ubuntu
6+
RUNNER_REG_TOKEN=ABC123
7+
RUNNER_GROUP=
8+
9+
# You can add additional variables below as needed
10+
HTTP_PROXY=http://proxy.local:3128
11+
http_proxy=http://proxy.local:3128
12+
HTTPS_PROXY=https://proxy.local:3129
13+
https_proxy=https://proxy.local:3129
14+
NO_PROXY=localhost,127.0.0.1
15+
no_proxy=localhost,127.0.0.1

copilot/daemon.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"experimental": false,
3+
"log-level": "info",
4+
"storage-driver": "overlay2"
5+
}

copilot/docker-compose.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
services:
2+
3+
runner-1:
4+
image: registry.dmz.liebherr.com/lis_github_pullthrough/liebherr/lli_github_runner_onprem/ubuntu-dind:1.0.0
5+
pull_policy: always
6+
privileged: true
7+
network_mode: bridge
8+
hostname: docker-runner-1
9+
env_file: .env
10+
volumes:
11+
- runner-data:/actions-runner/data
12+
- docker-data-1:/var/lib/docker
13+
- type: bind
14+
source: daemon.json
15+
target: /etc/docker/daemon.json
16+
read_only: true
17+
- type: bind
18+
source: /etc/ssl/certs
19+
target: /etc/ssl/certs
20+
read_only: true
21+
- type: bind
22+
source: /usr/local/share/ca-certificates
23+
target: /usr/local/share/ca-certificates
24+
read_only: true
25+
restart: always
26+
27+
volumes:
28+
runner-data:
29+
docker-data-1:

dev/.copilotignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*

docker/Dockerfile

Whitespace-only changes.

0 commit comments

Comments
 (0)