Skip to content

Commit 75133fc

Browse files
committed
👻 Initial import from tackle2-addon-discovery
Based on konveyor/tackle2-addon-discovery@3a2de28
0 parents  commit 75133fc

17 files changed

Lines changed: 852 additions & 0 deletions

.github/ISSUE_TEMPLATE/bug.yaml

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
name: 🐞 Bug
2+
description: File a bug/issue
3+
title: "[BUG] <title>"
4+
labels: ["kind/bug" , "needs-triage"]
5+
projects: ["konveyor/67"]
6+
body:
7+
- type: checkboxes
8+
attributes:
9+
label: Is there an existing issue for this?
10+
description: Please search to see if an issue already exists for the bug you encountered.
11+
options:
12+
- label: I have searched the existing issues
13+
required: true
14+
- type: input
15+
attributes:
16+
label: Konveyor version
17+
description: What is the Konveyor version you're using?
18+
validations:
19+
required: true
20+
- type: dropdown
21+
id: priority
22+
attributes:
23+
label: Priority
24+
description: What is the prority of this bug?
25+
options:
26+
- Critical
27+
- Blocker
28+
- Major
29+
- Minor
30+
- Undefined (Default)
31+
default: 0
32+
validations:
33+
required: true
34+
- type: textarea
35+
attributes:
36+
label: Current Behavior
37+
description: A concise description of what you're experiencing.
38+
validations:
39+
required: false
40+
- type: textarea
41+
attributes:
42+
label: Expected Behavior
43+
description: A concise description of what you expected to happen.
44+
validations:
45+
required: false
46+
- type: dropdown
47+
id: how_reproducible
48+
attributes:
49+
label: How Reproducible
50+
description: How often the bug can be reproduced?
51+
options:
52+
- Always (Default)
53+
- Sometimes
54+
- Never
55+
- Other (Add more details in 'Anything else')
56+
default: 0
57+
validations:
58+
required: true
59+
- type: textarea
60+
attributes:
61+
label: Steps To Reproduce
62+
description: Steps to reproduce the behavior.
63+
placeholder: |
64+
1. In this environment...
65+
2. With this config...
66+
3. Run '...'
67+
4. See error...
68+
validations:
69+
required: false
70+
- type: textarea
71+
attributes:
72+
label: Environment
73+
description: |
74+
examples:
75+
- **OS**: Ubuntu 20.04
76+
- **Node**: 13.14.0
77+
- **npm**: 7.6.3
78+
value: |
79+
- OS:
80+
render: markdown
81+
validations:
82+
required: false
83+
- type: textarea
84+
attributes:
85+
label: Anything else?
86+
description: |
87+
Links? References? Anything that will give us more context about the issue you are encountering!
88+
89+
Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in.
90+
validations:
91+
required: false

.github/workflows/issues.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Reconcile GitHub Issue (Comment)
2+
3+
on:
4+
issues:
5+
types:
6+
- opened
7+
- edited
8+
- closed
9+
- reopened
10+
- labeled
11+
- unlabeled
12+
issue_comment:
13+
types:
14+
- created
15+
- edited
16+
17+
concurrency:
18+
group: reconcile-issue-${{ github.event.issue.number }}-${{ github.event_name }}
19+
cancel-in-progress: true
20+
21+
jobs:
22+
reconcile-issue:
23+
if: github.event_name == 'issues' || github.event_name == 'pull_request'
24+
secrets: inherit
25+
uses: konveyor/release-tools/.github/workflows/reconcile-issue.yaml@main
26+
27+
reconcile-issue-comment:
28+
if: github.event_name == 'issue_comment'
29+
secrets: inherit
30+
uses: konveyor/release-tools/.github/workflows/reconcile-issue-comment.yaml@main

.github/workflows/main.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Build Discovery Addon
2+
3+
on:
4+
pull_request:
5+
paths-ignore:
6+
- '**.md'
7+
push:
8+
paths-ignore:
9+
- '**.md'
10+
11+
jobs:
12+
fmt:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
- uses: actions/setup-go@v3
17+
with:
18+
go-version: '1.21'
19+
- run: make fmt
20+
vet:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v3
24+
- uses: actions/setup-go@v3
25+
with:
26+
go-version: '1.21'
27+
- run: make vet
28+
build:
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: actions/checkout@v3
32+
- uses: actions/setup-go@v3
33+
with:
34+
go-version: '1.21'
35+
- run: make cmd
36+
build-image:
37+
runs-on: ubuntu-latest
38+
steps:
39+
- uses: actions/checkout@v3
40+
- run: make image-podman
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: 'Build and Push Multi-Arch Image'
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- 'main'
8+
- 'release-*'
9+
tags:
10+
- 'v*'
11+
12+
concurrency:
13+
group: march-build-${{ github.ref }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
push-quay:
18+
name: Build and Push Manifest
19+
runs-on: ubuntu-latest
20+
strategy:
21+
fail-fast: false
22+
steps:
23+
- name: Checkout Push to Registry action
24+
uses: konveyor/release-tools/build-push-quay@main
25+
with:
26+
architectures: "amd64, arm64"
27+
containerfile: "./Dockerfile"
28+
image_name: "tackle2-addon-discovery"
29+
image_namespace: "konveyor"
30+
image_registry: "quay.io"
31+
quay_publish_robot: ${{ secrets.QUAY_PUBLISH_ROBOT }}
32+
quay_publish_token: ${{ secrets.QUAY_PUBLISH_TOKEN }}
33+
ref: ${{ github.ref }}

.github/workflows/pr-closed.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: PR Closed
2+
3+
on:
4+
pull_request_target:
5+
branches:
6+
- main
7+
types:
8+
- closed
9+
10+
jobs:
11+
cherry_pick_job:
12+
permissions:
13+
pull-requests: write
14+
contents: write
15+
if: github.event.pull_request.merged == true
16+
secrets: inherit
17+
uses: konveyor/release-tools/.github/workflows/cherry-pick.yml@main

.github/workflows/verifyPR.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: PR Checks
2+
3+
on:
4+
pull_request_target:
5+
types: [opened, edited, reopened, synchronize]
6+
7+
jobs:
8+
verify:
9+
runs-on: ubuntu-latest
10+
name: Verify PR contents
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v3
14+
- name: Check Title
15+
id: verifier
16+
uses: konveyor/release-tools/cmd/verify-pr@main
17+
with:
18+
github_token: ${{ secrets.GITHUB_TOKEN }}

Dockerfile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
FROM registry.access.redhat.com/ubi9/go-toolset:latest as addon
2+
ENV GOPATH=$APP_ROOT
3+
COPY --chown=1001:0 . .
4+
RUN make cmd
5+
6+
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest
7+
RUN microdnf -y install \
8+
glibc-langpack-en \
9+
openssh-clients \
10+
subversion \
11+
git \
12+
tar
13+
RUN sed -i 's/^LANG=.*/LANG="en_US.utf8"/' /etc/locale.conf
14+
ENV LANG=en_US.utf8
15+
RUN echo "addon:x:1001:1001:addon user:/addon:/sbin/nologin" >> /etc/passwd
16+
RUN echo -e "StrictHostKeyChecking no" \
17+
"\nUserKnownHostsFile /dev/null" > /etc/ssh/ssh_config.d/99-konveyor.conf
18+
ENV HOME=/addon ADDON=/addon
19+
WORKDIR /addon
20+
ARG GOPATH=/opt/app-root
21+
COPY --from=addon $GOPATH/src/bin/addon /usr/bin
22+
ENTRYPOINT ["/usr/bin/addon"]

0 commit comments

Comments
 (0)