Skip to content

Commit

Permalink
origin
Browse files Browse the repository at this point in the history
  • Loading branch information
nzzaidi committed Jan 18, 2022
0 parents commit aaf501f
Show file tree
Hide file tree
Showing 30 changed files with 1,962 additions and 0 deletions.
192 changes: 192 additions & 0 deletions .github/workflows/baota-docker-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,192 @@
name: Build baota-docker Image (test)
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Triggers the workflow on push or pull request events but only for the main branch
# push:
# branches: [ main ]
# push:
# tags:
# - "v*"

jobs:
Baota-docker_clear_image_Build:
name: Build baota-docker Image (clear)
runs-on: oracle-SanJose-arm-01
steps:
-
name: Get version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} # ${{ steps.get_version.outputs.VERSION }}
-
name: Private Actions Checkout
uses: actions/checkout@v2.4.0
-
name: Docker Setup QEMU
uses: docker/setup-qemu-action@v1.2.0
-
name: Docker Setup Buildx
uses: docker/setup-buildx-action@v1.6.0
-
name: Docker Login
uses: docker/login-action@v1.12.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
continue-on-error: true
-
name: Docker Aliyun Login
uses: docker/login-action@v1.12.0
with:
registry: registry.cn-hangzhou.aliyuncs.com
username: ${{ secrets.ALI_USERNAME }}
password: ${{ secrets.ALI_PASSWORD }}
continue-on-error: true
-
name: Build and push Docker images
uses: docker/build-push-action@v2.7.0
with:
context: clear/
platforms: linux/amd64
file: clear/Dockerfile_clear
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/baota-docker:clear
registry.cn-hangzhou.aliyuncs.com/${{ secrets.NAME_SPACE }}/baota-docker:clear
continue-on-error: true

Baota-docker_ln_image_Build:
name: Build baota-docker Image (ln)
runs-on: oracle-Toronto-arm-01
steps:
-
name: Get version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} # ${{ steps.get_version.outputs.VERSION }}
-
name: Private Actions Checkout
uses: actions/checkout@v2.4.0
-
name: Docker Setup QEMU
uses: docker/setup-qemu-action@v1.2.0
-
name: Docker Setup Buildx
uses: docker/setup-buildx-action@v1.6.0
-
name: Docker Login
uses: docker/login-action@v1.12.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
continue-on-error: true
-
name: Docker Aliyun Login
uses: docker/login-action@v1.12.0
with:
registry: registry.cn-hangzhou.aliyuncs.com
username: ${{ secrets.ALI_USERNAME }}
password: ${{ secrets.ALI_PASSWORD }}
continue-on-error: true
-
name: Build and push Docker images
uses: docker/build-push-action@v2.7.0
with:
context: ln/
platforms: linux/amd64
file: ln/Dockerfile_ln
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/baota-docker:ln
registry.cn-hangzhou.aliyuncs.com/${{ secrets.NAME_SPACE }}/baota-docker:ln
continue-on-error: true

Baota-docker_lnp_image_Build:
name: Build baota-docker Image (lnp)
runs-on: ubuntu-latest
steps:
-
name: Get version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} # ${{ steps.get_version.outputs.VERSION }}
-
name: Private Actions Checkout
uses: actions/checkout@v2.4.0
-
name: Docker Setup QEMU
uses: docker/setup-qemu-action@v1.2.0
-
name: Docker Setup Buildx
uses: docker/setup-buildx-action@v1.6.0
-
name: Docker Login
uses: docker/login-action@v1.12.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
continue-on-error: true
-
name: Docker Aliyun Login
uses: docker/login-action@v1.12.0
with:
registry: registry.cn-hangzhou.aliyuncs.com
username: ${{ secrets.ALI_USERNAME }}
password: ${{ secrets.ALI_PASSWORD }}
continue-on-error: true
-
name: Build and push Docker images
uses: docker/build-push-action@v2.7.0
with:
context: lnp/
platforms: linux/amd64
file: lnp/Dockerfile_lnp
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/baota-docker:lnp
registry.cn-hangzhou.aliyuncs.com/${{ secrets.NAME_SPACE }}/baota-docker:lnp
continue-on-error: true

Baota-docker_lnmp_image_Build:
name: Build baota-docker Image (lnmp)
runs-on: ubuntu-latest
steps:
-
name: Get version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} # ${{ steps.get_version.outputs.VERSION }}
-
name: Private Actions Checkout
uses: actions/checkout@v2.4.0
-
name: Docker Setup QEMU
uses: docker/setup-qemu-action@v1.2.0
-
name: Docker Setup Buildx
uses: docker/setup-buildx-action@v1.6.0
-
name: Docker Login
uses: docker/login-action@v1.12.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
continue-on-error: true
-
name: Docker Aliyun Login
uses: docker/login-action@v1.12.0
with:
registry: registry.cn-hangzhou.aliyuncs.com
username: ${{ secrets.ALI_USERNAME }}
password: ${{ secrets.ALI_PASSWORD }}
continue-on-error: true
-
name: Build and push Docker images
uses: docker/build-push-action@v2.7.0
with:
context: lnmp/
platforms: linux/amd64
file: lnmp/Dockerfile_lnmp
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/baota-docker:lnmp
registry.cn-hangzhou.aliyuncs.com/${{ secrets.NAME_SPACE }}/baota-docker:lnmp
continue-on-error: true
192 changes: 192 additions & 0 deletions .github/workflows/baota-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,192 @@
name: Build baota-docker Image
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Triggers the workflow on push or pull request events but only for the main branch
# push:
# branches: [ main ]
push:
tags:
- "v*"

jobs:
Baota-docker_clear_image_Build:
name: Build baota-docker Image (clear)
runs-on: ubuntu-latest
steps:
-
name: Get version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} # ${{ steps.get_version.outputs.VERSION }}
-
name: Private Actions Checkout
uses: actions/checkout@v2.4.0
-
name: Docker Setup QEMU
uses: docker/setup-qemu-action@v1.2.0
-
name: Docker Setup Buildx
uses: docker/setup-buildx-action@v1.6.0
-
name: Docker Login
uses: docker/login-action@v1.12.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
continue-on-error: true
-
name: Docker Aliyun Login
uses: docker/login-action@v1.12.0
with:
registry: registry.cn-hangzhou.aliyuncs.com
username: ${{ secrets.ALI_USERNAME }}
password: ${{ secrets.ALI_PASSWORD }}
continue-on-error: true
-
name: Build and push Docker images
uses: docker/build-push-action@v2.7.0
with:
context: clear/
platforms: linux/amd64
file: clear/Dockerfile_clear
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/baota-docker:clear
registry.cn-hangzhou.aliyuncs.com/${{ secrets.NAME_SPACE }}/baota-docker:clear
continue-on-error: true

Baota-docker_ln_image_Build:
name: Build baota-docker Image (ln)
runs-on: ubuntu-latest
steps:
-
name: Get version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} # ${{ steps.get_version.outputs.VERSION }}
-
name: Private Actions Checkout
uses: actions/checkout@v2.4.0
-
name: Docker Setup QEMU
uses: docker/setup-qemu-action@v1.2.0
-
name: Docker Setup Buildx
uses: docker/setup-buildx-action@v1.6.0
-
name: Docker Login
uses: docker/login-action@v1.12.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
continue-on-error: true
-
name: Docker Aliyun Login
uses: docker/login-action@v1.12.0
with:
registry: registry.cn-hangzhou.aliyuncs.com
username: ${{ secrets.ALI_USERNAME }}
password: ${{ secrets.ALI_PASSWORD }}
continue-on-error: true
-
name: Build and push Docker images
uses: docker/build-push-action@v2.7.0
with:
context: ln/
platforms: linux/amd64
file: ln/Dockerfile_ln
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/baota-docker:ln
registry.cn-hangzhou.aliyuncs.com/${{ secrets.NAME_SPACE }}/baota-docker:ln
continue-on-error: true

Baota-docker_lnp_image_Build:
name: Build baota-docker Image (lnp)
runs-on: ubuntu-latest
steps:
-
name: Get version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} # ${{ steps.get_version.outputs.VERSION }}
-
name: Private Actions Checkout
uses: actions/checkout@v2.4.0
-
name: Docker Setup QEMU
uses: docker/setup-qemu-action@v1.2.0
-
name: Docker Setup Buildx
uses: docker/setup-buildx-action@v1.6.0
-
name: Docker Login
uses: docker/login-action@v1.12.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
continue-on-error: true
-
name: Docker Aliyun Login
uses: docker/login-action@v1.12.0
with:
registry: registry.cn-hangzhou.aliyuncs.com
username: ${{ secrets.ALI_USERNAME }}
password: ${{ secrets.ALI_PASSWORD }}
continue-on-error: true
-
name: Build and push Docker images
uses: docker/build-push-action@v2.7.0
with:
context: lnp/
platforms: linux/amd64
file: lnp/Dockerfile_lnp
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/baota-docker:lnp
registry.cn-hangzhou.aliyuncs.com/${{ secrets.NAME_SPACE }}/baota-docker:lnp
continue-on-error: true

Baota-docker_lnmp_image_Build:
name: Build baota-docker Image (lnmp)
runs-on: ubuntu-latest
steps:
-
name: Get version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} # ${{ steps.get_version.outputs.VERSION }}
-
name: Private Actions Checkout
uses: actions/checkout@v2.4.0
-
name: Docker Setup QEMU
uses: docker/setup-qemu-action@v1.2.0
-
name: Docker Setup Buildx
uses: docker/setup-buildx-action@v1.6.0
-
name: Docker Login
uses: docker/login-action@v1.12.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
continue-on-error: true
-
name: Docker Aliyun Login
uses: docker/login-action@v1.12.0
with:
registry: registry.cn-hangzhou.aliyuncs.com
username: ${{ secrets.ALI_USERNAME }}
password: ${{ secrets.ALI_PASSWORD }}
continue-on-error: true
-
name: Build and push Docker images
uses: docker/build-push-action@v2.7.0
with:
context: lnmp/
platforms: linux/amd64
file: lnmp/Dockerfile_lnmp
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/baota-docker:lnmp
registry.cn-hangzhou.aliyuncs.com/${{ secrets.NAME_SPACE }}/baota-docker:lnmp
continue-on-error: true
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# osx
.DS_Store

# vscode
.vscode
Loading

0 comments on commit aaf501f

Please sign in to comment.