mirror of
https://github.com/h44z/wg-portal
synced 2025-02-26 05:49:14 +00:00
update docker build settings, move to new docker hub repository, use stable branch and major version tags
This commit is contained in:
parent
c8353b85ae
commit
e5ed9736b3
7
.github/workflows/docker-publish.yml
vendored
7
.github/workflows/docker-publish.yml
vendored
@ -50,15 +50,16 @@ jobs:
|
|||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v4
|
uses: docker/metadata-action@v4
|
||||||
with:
|
with:
|
||||||
images: h44z/wg-portal
|
images: wgportal/wg-portal
|
||||||
flavor: |
|
flavor: |
|
||||||
latest=true
|
latest=false
|
||||||
prefix=
|
prefix=
|
||||||
suffix=
|
suffix=
|
||||||
tags: |
|
tags: |
|
||||||
type=ref,event=branch
|
type=ref,event=branch
|
||||||
type=ref,event=tag
|
|
||||||
type=semver,pattern={{version}}
|
type=semver,pattern={{version}}
|
||||||
|
type=semver,pattern={{major}}.{{minor}}
|
||||||
|
type=semver,pattern=v{{major}}
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v3
|
||||||
|
14
README.md
14
README.md
@ -1,4 +1,4 @@
|
|||||||
# WireGuard Portal
|
# WireGuard Portal (v1)
|
||||||
|
|
||||||
[](https://travis-ci.com/h44z/wg-portal)
|
[](https://travis-ci.com/h44z/wg-portal)
|
||||||
[](https://opensource.org/licenses/MIT)
|
[](https://opensource.org/licenses/MIT)
|
||||||
@ -6,7 +6,7 @@
|
|||||||
[](https://goreportcard.com/report/github.com/h44z/wg-portal)
|
[](https://goreportcard.com/report/github.com/h44z/wg-portal)
|
||||||

|

|
||||||

|

|
||||||
[](https://hub.docker.com/r/h44z/wg-portal/)
|
[](https://hub.docker.com/r/h44z/wg-portal/)
|
||||||
|
|
||||||
A simple, web based configuration portal for [WireGuard](https://wireguard.com).
|
A simple, web based configuration portal for [WireGuard](https://wireguard.com).
|
||||||
The portal uses the WireGuard [wgctrl](https://github.com/WireGuard/wgctrl-go) library to manage existing VPN
|
The portal uses the WireGuard [wgctrl](https://github.com/WireGuard/wgctrl-go) library to manage existing VPN
|
||||||
@ -40,16 +40,20 @@ Make sure that your host system has at least one WireGuard interface (for exampl
|
|||||||
If you did not start up a WireGuard interface yet, take a look at [wg-quick](https://manpages.debian.org/unstable/wireguard-tools/wg-quick.8.en.html) in order to get started.
|
If you did not start up a WireGuard interface yet, take a look at [wg-quick](https://manpages.debian.org/unstable/wireguard-tools/wg-quick.8.en.html) in order to get started.
|
||||||
|
|
||||||
### Docker
|
### Docker
|
||||||
The easiest way to run WireGuard Portal is to use the Docker image provided.
|
The easiest way to run WireGuard Portal is to use the [Docker image](https://hub.docker.com/r/wgportal/wg-portal) provided.
|
||||||
|
|
||||||
HINT: the *latest* tag always refers to the master branch and might contain unstable or incompatible code!
|
Since the project was accepted by the Docker-Sponsored Open Source Program, the image is now available on Docker Hub:
|
||||||
|
https://hub.docker.com/r/wgportal/wg-portal
|
||||||
|
|
||||||
|
> :warning: **HINT**: the *latest* tag always refers to the master branch and might contain unstable or incompatible code!
|
||||||
|
> For production use a fixed version or use the *stable* tag.
|
||||||
|
|
||||||
Docker Compose snippet with some sample configuration values:
|
Docker Compose snippet with some sample configuration values:
|
||||||
```
|
```
|
||||||
version: '3.6'
|
version: '3.6'
|
||||||
services:
|
services:
|
||||||
wg-portal:
|
wg-portal:
|
||||||
image: h44z/wg-portal:latest
|
image: wgportal/wg-portal:v1
|
||||||
container_name: wg-portal
|
container_name: wg-portal
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
cap_add:
|
cap_add:
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
version: '3.6'
|
version: '3.6'
|
||||||
services:
|
services:
|
||||||
wg-portal:
|
wg-portal:
|
||||||
image: h44z/wg-portal:1.0.17
|
image: wgportal/wg-portal:v1
|
||||||
container_name: wg-portal
|
container_name: wg-portal
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
logging:
|
logging:
|
||||||
|
10
hooks/build
10
hooks/build
@ -1,10 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# File needs to be called /hooks/build relative to the Dockerfile.
|
|
||||||
# Some environment variables are injected into the build hook, see: https://docs.docker.com/docker-hub/builds/advanced/.
|
|
||||||
|
|
||||||
GIT_SHORT_HASH=$(echo $SOURCE_COMMIT | cut -c1-7)
|
|
||||||
echo "Build hook running for git hash $GIT_SHORT_HASH"
|
|
||||||
docker build --build-arg BUILD_IDENTIFIER=$DOCKER_TAG \
|
|
||||||
--build-arg BUILD_VERSION=$GIT_SHORT_HASH \
|
|
||||||
-t $IMAGE_NAME .
|
|
Loading…
Reference in New Issue
Block a user