Private GIT
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
wg-gen-web
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vlbox
wg-gen-web
Commits
8d6a05e2
Commit
8d6a05e2
authored
5 years ago
by
vx3r
Browse files
Options
Downloads
Patches
Plain Diff
Github workflow to build multi arch docker image, thx to zmingxie
parent
14660f48
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
.github/workflows/dockerimage.yml
+41
-0
41 additions, 0 deletions
.github/workflows/dockerimage.yml
.gitlab-ci.yml
+1
-2
1 addition, 2 deletions
.gitlab-ci.yml
Dockerfile
+0
-1
0 additions, 1 deletion
Dockerfile
README.md
+1
-0
1 addition, 0 deletions
README.md
with
43 additions
and
3 deletions
.github/workflows/dockerimage.yml
0 → 100644
+
41
−
0
View file @
8d6a05e2
name
:
Build multi-arch Docker Images via buildx
on
:
pull_request
:
branches
:
-
master
push
:
branches
:
-
master
jobs
:
docker-buildx
:
runs-on
:
ubuntu-latest
env
:
DOCKER_IMAGE_NAME
:
vx3r/wg-gen-web
steps
:
-
name
:
Checkout
uses
:
actions/checkout@v1
-
name
:
Build Docker Images Only
if
:
github.event_name == 'pull_request'
uses
:
ilteoood/docker_buildx@master
with
:
publish
:
false
tag
:
dev
dockerFile
:
./Dockerfile
platform
:
linux/amd64,linux/arm64,linux/arm/v7
imageName
:
${{ env.DOCKER_IMAGE_NAME }}
-
name
:
Build and Publish Docker Images
if
:
github.event_name == 'push' && github.ref == 'refs/heads/master'
uses
:
ilteoood/docker_buildx@master
with
:
publish
:
true
tag
:
latest
dockerFile
:
./Dockerfile
platform
:
linux/amd64,linux/arm64,linux/arm/v7
imageName
:
${{ env.DOCKER_IMAGE_NAME }}
dockerHubUser
:
${{ secrets.DOCKER_LOGIN_USERNAME }}
dockerHubPassword
:
${{ secrets.DOCKER_LOGIN_PASSWORD }}
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
1
−
2
View file @
8d6a05e2
...
@@ -7,7 +7,7 @@ build:
...
@@ -7,7 +7,7 @@ build:
image
:
docker:latest
image
:
docker:latest
script
:
script
:
-
docker info
-
docker info
-
docker build --network br_docker --tag ${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHORT_SHA}
--tag ${CI_REGISTRY_IMAGE}:latest
.
-
docker build --network br_docker --tag ${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHORT_SHA} .
push
:
push
:
stage
:
push docker hub
stage
:
push docker hub
...
@@ -17,4 +17,3 @@ push:
...
@@ -17,4 +17,3 @@ push:
script
:
script
:
-
echo ${REGISTRY_PASSWORD} | docker login -u ${CI_REGISTRY_USER} --password-stdin ${CI_REGISTRY}
-
echo ${REGISTRY_PASSWORD} | docker login -u ${CI_REGISTRY_USER} --password-stdin ${CI_REGISTRY}
-
docker push ${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHORT_SHA}
-
docker push ${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHORT_SHA}
-
docker push ${CI_REGISTRY_IMAGE}:latest
This diff is collapsed.
Click to expand it.
Dockerfile
+
0
−
1
View file @
8d6a05e2
...
@@ -8,7 +8,6 @@ WORKDIR /app
...
@@ -8,7 +8,6 @@ WORKDIR /app
COPY
ui/package*.json ./
COPY
ui/package*.json ./
RUN
npm
install
RUN
npm
install
COPY
ui/ ./
COPY
ui/ ./
RUN
ls
-l
RUN
npm run build
RUN
npm run build
FROM
alpine
FROM
alpine
...
...
This diff is collapsed.
Click to expand it.
README.md
+
1
−
0
View file @
8d6a05e2
...
@@ -8,6 +8,7 @@ Simple Web based configuration generator for [WireGuard](https://wireguard.com).
...
@@ -8,6 +8,7 @@ Simple Web based configuration generator for [WireGuard](https://wireguard.com).
[

](https://goreportcard.com/report/github.com/vx3r/wg-gen-web)
[

](https://goreportcard.com/report/github.com/vx3r/wg-gen-web)


[

](http://www.wtfpl.net/about/)
[

](http://www.wtfpl.net/about/)







...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment