Skip to content

Add dependencies license for release binary #610

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 34 commits into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
e041626
docs(notice): add NOTICE
LinkinStars Oct 26, 2023
8f82627
docs(disclaimer): add DISCLAIMER-WIP
LinkinStars Oct 26, 2023
0e12c10
docs(notice): fix notice date
LinkinStars Oct 26, 2023
14157d4
docs(disclaimer): update disclaimer
LinkinStars Oct 26, 2023
e9b75de
docs(notice): update notice
LinkinStars Oct 26, 2023
ab43ce1
docs(disclaimer): rename disclaimer
LinkinStars Oct 26, 2023
5f2cf4d
refactor(rename): rename all link to answer.apache.org
LinkinStars Nov 1, 2023
1f7e244
refactor(rename): rename all go package to apache/incubator-answer
LinkinStars Nov 1, 2023
d54898c
fix: rename links under the ui folder to apache
shuashuai Nov 1, 2023
6ce312b
fix: resolve conflict
shuashuai Nov 1, 2023
3c4ef4c
fix: rename plugins link
shuashuai Nov 1, 2023
2ab29c0
chore: update screenshot img
shuashuai Nov 1, 2023
f3f7889
refactor(rename): rename link to apache/incubator-answer
LinkinStars Nov 1, 2023
22633fc
Merge branch 'main' into podling
LinkinStars Nov 1, 2023
e49314a
refactor(rename): rename output filename
LinkinStars Nov 1, 2023
fb57fa4
docs(lic): add license header for tpl
LinkinStars Nov 1, 2023
7f53028
fix: delete logs
shuashuai Nov 3, 2023
f4652b3
docs(lic): add dependencies license
LinkinStars Nov 3, 2023
63d691a
Merge branch 'podling' of github.com:answerdev/answer into podling
shuashuai Nov 3, 2023
d25f251
feat: add ui licenses
shuashuai Nov 3, 2023
70d2462
docs(lic): add dependencies license
LinkinStars Nov 3, 2023
0e55865
Merge remote-tracking branch 'origin/main' into podling
LinkinStars Nov 3, 2023
993a5f2
feat: update license list
shuashuai Nov 6, 2023
f1d2030
docs(lic): add dependencies license list
LinkinStars Nov 6, 2023
4c1a623
docs(lic): add licenses file link
LinkinStars Nov 6, 2023
293cd78
fix: update license links
shuashuai Nov 6, 2023
9984533
ci(goreleaser): add licenses file to release
LinkinStars Nov 7, 2023
1d22401
fix: Update the template file to resolve the HTML rendering exception…
shuashuai Nov 7, 2023
a2441da
ci(script): add script to check ASF header
LinkinStars Nov 7, 2023
d80adbd
ci(action): rename and refactor GitHub action
LinkinStars Nov 8, 2023
d9e8ba7
Merge remote-tracking branch 'origin/main' into podling
LinkinStars Nov 9, 2023
7997551
ci(action): update actions/checkout version
LinkinStars Nov 9, 2023
76998d4
ci(goreleaser): add DISCLAIMER into binary
LinkinStars Nov 15, 2023
c932e03
Merge remote-tracking branch 'origin/main' into podling
LinkinStars Nov 15, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# specific language governing permissions and limitations
# under the License.

name: "Goreleaser"
name: Build Binary For Release

on:
push:
Expand All @@ -26,7 +26,7 @@ permissions:

jobs:
build-goreleaser:
runs-on: [self-hosted, linux]
runs-on: ubuntu-latest

steps:
- name: Checkout
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# specific language governing permissions and limitations
# under the License.

name: Build DockerHub Image
name: Build Docker Image For Release

on:
push:
Expand All @@ -29,7 +29,7 @@ on:

jobs:
build:
runs-on: [self-hosted, linux]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -38,7 +38,7 @@ jobs:
id: meta
uses: docker/metadata-action@v4
with:
images: answerdev/answer
images: apache/answer
tags: |
type=raw,value=latest
type=ref,enable=true,priority=600,prefix=,suffix=,event=branch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,33 +15,15 @@
# specific language governing permissions and limitations
# under the License.

name: Manual Build DockerHub Image
name: Build Docker Image For Test

on:
workflow_dispatch:
inputs:
tag_name:
type: string
required: true
description: 'DockerHub img tag name'
logLevel:
description: 'Log level'
required: true
default: 'warning'
type: choice
options:
- info
- warning
- debug
tags:
description: 'Test scenario tags'
required: false
type: boolean


push:
branches: [ "test" ]

jobs:
build:
name: Build and Push
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -51,10 +33,9 @@ jobs:
id: meta
uses: docker/metadata-action@v4
with:
images: answerdev/answer
images: apache/answer
tags: |
type=ref,enable=true,priority=600,prefix=,suffix=,event=branch
type=semver,pattern={{version}}
type=raw,value=test

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
Expand All @@ -72,10 +53,8 @@ jobs:
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
file: ./Dockerfile
tags: answerdev/answer:${{ inputs.tag_name }}
platforms: linux/amd64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}


79 changes: 0 additions & 79 deletions .github/workflows/build_dev_img.yml

This file was deleted.

59 changes: 0 additions & 59 deletions .github/workflows/build_test.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Check license header
uses: korandoru/hawkeye@v3
15 changes: 10 additions & 5 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,16 @@ builds:

archives:
- name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
apache-answer-{{ .Version }}-incubating-{{ .Os }}-{{ .Arch }}
files:
- src: "docs/release/LICENSE"
dst: LICENSE
- src: "docs/release/NOTICE"
dst: NOTICE
- src: "docs/release/licenses/*"
dst: licenses/
- src: "DISCLAIMER"
dst: DISCLAIMER
checksum:
name_template: 'checksums.txt'
snapshot:
Expand Down
19 changes: 18 additions & 1 deletion charts/templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
{{/*
Expand the name of the chart.

Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.

*/}}
{{- define "answer.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
Expand Down
Loading