Skip to content

Commit 7efe329

Browse files
committed
Update repository URL
1 parent 31b58e4 commit 7efe329

File tree

8 files changed

+73
-5
lines changed

8 files changed

+73
-5
lines changed

.github/dependabot.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 2
2+
updates:
3+
# Maintain dependencies for GitHub Actions
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
interval: "daily"
8+
- package-ecosystem: "gomod"
9+
directory: "/"
10+
schedule:
11+
interval: "daily"

.github/workflows/create-release.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Release
2+
on:
3+
push:
4+
tags:
5+
- "v[0-9]+.[0-9]+.[0-9]+"
6+
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
- name: Get version number
16+
id: version
17+
run: echo "version=$(echo ${{ github.ref_name }} | cut -c2- -)" >> $GITHUB_OUTPUT
18+
- name: Release
19+
uses: ncipollo/release-action@v1
20+
with:
21+
generateReleaseNotes: true
22+
makeLatest: "legacy"
23+
name: "Version ${{ steps.version.outputs.version }}"

.github/workflows/main.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: CI
4+
5+
# Controls when the workflow will run
6+
on:
7+
# Triggers the workflow on push or pull request events but only for the "master" branch
8+
push:
9+
branches: [ "master" ]
10+
pull_request:
11+
branches: [ "master" ]
12+
13+
# Allows you to run this workflow manually from the Actions tab
14+
workflow_dispatch:
15+
jobs:
16+
go_build:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
- name: Setup Go
22+
uses: actions/setup-go@v5
23+
- name: Install depends
24+
run: go get .
25+
- name: Build
26+
run: go build -v ./...

.pre-commit-config.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.6.0
4+
hooks:
5+
- id: end-of-file-fixer
6+
- id: trailing-whitespace
7+
- id: mixed-line-ending
8+
exclude: ^.github/.*$

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ Docker-setup is a program that allow configure a container (for networking) via
33

44
## Usage
55
This program only use environment variables for its configuration:
6-
- `ONESHOT`: when this environment variable is equal to `true`, the program will *not* sleep until a signal (SIGINT or SIGTERM) is received, and not perform cleaning scripts on exit
6+
- `ONESHOT`: when this environment variable is equal to `true`, the program will *not* sleep until a signal (SIGINT or SIGTERM) is received, and not perform cleaning scripts on exit
77
- `NAT4_IFACES` is a list of interfaces where MASQUERADE will be enabled
88
- `ROUTES_INIT` is a list of routes modifications that will be performed on init
9-
- `ROUTES_EXIT` is a list of routes modifications that will be performed on exit
9+
- `ROUTES_EXIT` is a list of routes modifications that will be performed on exit
1010
- `PRE_INIT_HOOK` is a command that is run before the init (nat & routes init). The command can takes some arguments from `PRE_INIT_HOOK_0`, `PRE_INIT_HOOK_1`, and so on.
1111
- `POST_INIT_HOOK` is a command that is run after the init (nat & routes init). The command can takes some arguments from `POST_INIT_HOOK_0`, `POST_INIT_HOOK_1`, and so on.
1212
- `PRE_EXIT_HOOK` is a command that is run before the exit (nat & routes cleaning). The command can takes some arguments from `PRE_EXIT_HOOK_0`, `PRE_EXIT_HOOK_1`, and so on.

go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
module github.com/louisroyer/docker-setup
1+
module github.com/nextmn/docker-setup
22

3-
go 1.19
3+
go 1.21

go.sum

Whitespace-only changes.

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"os/signal"
1111
"syscall"
1212

13-
setup "github.com/louisroyer/docker-setup/runtime"
13+
setup "github.com/nextmn/docker-setup/runtime"
1414
)
1515

1616
// Initialize signals handling

0 commit comments

Comments
 (0)