github.com/polarismesh/polaris@v1.17.8/.github/workflows/docker-standalone.yml (about) 1 # Tencent is pleased to support the open source community by making Polaris available. 2 # 3 # Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. 4 # 5 # Licensed under the BSD 3-Clause License (the "License"); 6 # you may not use this file except in compliance with the License. 7 # You may obtain a copy of the License at 8 # 9 # https://opensource.org/licenses/BSD-3-Clause 10 # 11 # Unless required by applicable law or agreed to in writing, software distributed 12 # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 13 # CONDITIONS OF ANY KIND, either express or implied. See the License for the 14 # specific language governing permissions and limitations under the License. 15 16 name: Standalone(Docker) 17 18 on: 19 workflow_dispatch: 20 inputs: 21 server_version: 22 description: "tag version for polaris" 23 required: true 24 console_version: 25 description: "tag version for polaris-console" 26 required: true 27 limiter_version: 28 description: "tag version for polaris-limiter" 29 required: true 30 31 jobs: 32 release: 33 name: Release polaris standalone docker-image 34 runs-on: ubuntu-latest 35 strategy: 36 matrix: 37 goos: [linux] 38 goarch: [amd64] 39 exclude: 40 - goos: windows 41 goarch: arm64 42 43 steps: 44 - name: Checkout code 45 uses: actions/checkout@v2 46 with: 47 ref: ${{ github.event.inputs.server_version }} 48 49 - name: Set up Docker Buildx 50 uses: docker/setup-buildx-action@v1 51 with: 52 config-inline: | 53 insecure-entitlements = [ "network.host" ] 54 55 - name: Log in to Docker Hub 56 uses: docker/login-action@v1 57 with: 58 username: ${{ secrets.POLARIS_DOCKER_NAME }} 59 password: ${{ secrets.POLARIS_DOCKER_PASSWORD }} 60 61 - name: Build 62 id: build 63 env: 64 GOOS: ${{ matrix.goos }} 65 GOARCH: ${{ matrix.goarch }} 66 SERVER_VERSION: ${{ github.event.inputs.server_version }} 67 CONSOLE_VERSION: ${{ github.event.inputs.console_version }} 68 LIMITER_VERSION: ${{ github.event.inputs.limiter_version }} 69 run: | 70 set -e 71 workdir=$(pwd) 72 cd ${workdir} 73 export WORKDIR=${workdir} 74 bash release/standalone/build_standalone_docker.sh