Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔒 💚 Fix security issues & Update CI & Improve code quality (#26)
- Loading branch information
Showing
37 changed files
with
581 additions
and
255 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
node_modules | ||
docs/.vuepress/dist | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
name: docker | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- dev | ||
|
||
|
||
jobs: | ||
debian: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.ref }} | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
- name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKER_USER_NAME }} | ||
password: ${{ secrets.DOCKER_ACCESS_TOKEN }} | ||
- name: Build and push (ngx_waf:stable) | ||
if: ${{ github.ref == 'refs/heads/master' }} | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
file: docker/Dockerfile.debian | ||
push: true | ||
tags: ${{ secrets.DOCKER_USER_NAME }}/ngx_waf:stable | ||
# Unable to build images for linux/arm/v5 platforms due to a bug in docker buildx. | ||
platforms: | | ||
linux/386 | ||
linux/amd64 | ||
linux/arm64/v8 | ||
linux/arm/v7 | ||
linux/mips64le | ||
linux/ppc64le | ||
linux/s390x | ||
- name: Build and push (ngx_waf:latest & ngx_waf:dev) | ||
if: ${{ github.ref == 'refs/heads/dev' }} | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
file: docker/Dockerfile.debian | ||
push: true | ||
tags: | | ||
${{ secrets.DOCKER_USER_NAME }}/ngx_waf:latest | ||
${{ secrets.DOCKER_USER_NAME }}/ngx_waf:dev | ||
# Unable to build images for linux/arm/v5 platforms due to a bug in docker buildx. | ||
platforms: | | ||
linux/386 | ||
linux/amd64 | ||
linux/arm64/v8 | ||
linux/arm/v7 | ||
linux/mips64le | ||
linux/ppc64le | ||
linux/s390x | ||
alpine: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.ref }} | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
- name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKER_USER_NAME }} | ||
password: ${{ secrets.DOCKER_ACCESS_TOKEN }} | ||
- name: Build and push (ngx_waf:stable-alpine) | ||
if: ${{ github.ref == 'refs/heads/master' }} | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
file: docker/Dockerfile.alpine | ||
push: true | ||
tags: ${{ secrets.DOCKER_USER_NAME }}/ngx_waf:stable-alpine | ||
platforms: | | ||
linux/amd64 | ||
linux/arm64/v8 | ||
linux/arm/v6 | ||
linux/arm/v7 | ||
linux/386 | ||
linux/ppc64le | ||
linux/s390x | ||
- name: Build and push (ngx_waf:dev-alpine) | ||
if: ${{ github.ref == 'refs/heads/dev' }} | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
file: docker/Dockerfile.alpine | ||
push: true | ||
tags: ${{ secrets.DOCKER_USER_NAME }}/ngx_waf:dev-alpine | ||
platforms: | | ||
linux/amd64 | ||
linux/arm64/v8 | ||
linux/arm/v6 | ||
linux/arm/v7 | ||
linux/386 | ||
linux/ppc64le | ||
linux/s390x | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
inc/uthash | ||
.vscode | ||
node_modules | ||
docs/.vuepress/dist | ||
docs/.vuepress/dist | ||
yarn.lock |
Oops, something went wrong.