Skip to content

Commit

Permalink
Self hosted release 0.24.0
Browse files Browse the repository at this point in the history
Self hosted release 0.24.0
  • Loading branch information
etaques committed Apr 11, 2023
2 parents 13518f0 + 063ad42 commit 2094860
Show file tree
Hide file tree
Showing 93 changed files with 3,332 additions and 1,789 deletions.
6 changes: 3 additions & 3 deletions .github/actions/go-lint/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM golang:1.15.1-buster

LABEL author="Rodrigo Pavan<rpoliveira@daitan.com>"
LABEL maintainer="Daitan Digital Solutions"
LABEL author="Everton Haise Taques<everton.taques@encora.com>"
LABEL maintainer="netboxlabs"
LABEL version="1.0.0"

RUN mkdir -p /workspace
Expand All @@ -16,4 +16,4 @@ RUN apt-get update \
&& curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b /golangci-lint v1.38.0 \
&& chmod +x /github-commenter /entrypoint.sh /golangci-lint

ENTRYPOINT ["/entrypoint.sh"]
ENTRYPOINT ["/entrypoint.sh"]
6 changes: 3 additions & 3 deletions .github/actions/go-lint/action.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: 'go-lint'
author: 'Rodrigo Pavan<rpoliveira@daitan.com>'
description: 'Daitan Digital Solutions Docker Actions'
author: 'Everton Haise Taques<everton.taques@encora.com>'
description: 'netboxlabs'

runs:
using: 'docker'
image: 'Dockerfile'
image: 'Dockerfile'
7 changes: 4 additions & 3 deletions .github/actions/go-report/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
FROM golang:1.20-alpine

LABEL author="Everton Taques<everton.taques@encora.com>"
LABEL maintainer="ns1labs"
LABEL author="Everton Haise Taques<everton.taques@encora.com>"
LABEL maintainer="netboxlabs"
LABEL version="1.0.0"

RUN mkdir -p /workspace

COPY ./entrypoint.sh /entrypoint.sh
COPY ./github-commenter_linux_amd64 /github-commenter_linux_amd64

RUN apk add git make curl jq && \
wget https://github.com/cloudposse/github-commenter/releases/download/0.7.0/github-commenter_linux_amd64 -O /github-commenter && \
mv /github-commenter_linux_amd64 /github-commenter && \
chmod +x /github-commenter /entrypoint.sh

RUN git clone https://github.com/gojp/goreportcard.git && \
Expand Down
3 changes: 2 additions & 1 deletion .github/actions/go-report/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ inputs:

github_token:
description: " github token"
required: true
required: false
default: ""

github_owner:
description: " github owner"
Expand Down
1 change: 0 additions & 1 deletion .github/actions/go-report/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
function validateParams() {
echo "========================= Checking parameters ========================="
[[ -z $INPUT_GO_REPORT_THRESHOLD ]] && echo "Threshold of failure is required" && exit 1 echo " Threshold of failure present"
[[ -z $INPUT_GITHUB_TOKEN ]] && echo "GITHUB TOKEN is required" && exit 1 echo " GITHUB TOKEN present"
[[ -z $INPUT_GITHUB_OWNER ]] && echo "GITHUB OWNER is required" && exit 1 echo " GITHUB OWNER present"
[[ -z $INPUT_GITHUB_REPO ]] && echo "GITHUB REPO is required" && exit 1 echo " GITHUB REPO present"

Expand Down
Binary file not shown.
6 changes: 3 additions & 3 deletions .github/actions/slack-post/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM ubuntu:20.04

LABEL author="Everton Taques<everton.taques@encora.com>"
LABEL maintainer="ns1labs"
LABEL author="Everton Haise Taques<everton.taques@encora.com>"
LABEL maintainer="netboxlabs"
LABEL version="1.0.0"

RUN mkdir -p /workspace
Expand All @@ -15,4 +15,4 @@ RUN chmod a+x /entrypoint.sh
RUN apt-get update \
&& apt-get install jq git curl -y

ENTRYPOINT ["/entrypoint.sh"]
ENTRYPOINT ["/entrypoint.sh"]
4 changes: 2 additions & 2 deletions .github/actions/slack-post/action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: 'slack-post'
author: 'Everton Taques<everton.taques@encora.com>'
description: 'ns1labs'
description: 'netboxlabs'

inputs:
branch:
Expand All @@ -25,4 +25,4 @@ inputs:

runs:
using: 'docker'
image: 'Dockerfile'
image: 'Dockerfile'
21 changes: 10 additions & 11 deletions .github/workflows/agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,6 @@ jobs:
- name: Debug version
run: echo ${{ env.VERSION }}

- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Replace crashpad and geo-db params
run: |
Expand All @@ -118,8 +112,6 @@ jobs:
- name: Build orb-agent
shell: bash
env:
IMAGE_NAME: ns1labs/orb-agent
run: |
if [ "${{ github.event.inputs.pktvisor_tag }}" == "" ]; then
make agent
Expand All @@ -128,7 +120,14 @@ jobs:
PKTVISOR_TAG=${{ github.event.inputs.pktvisor_tag }} make agent
PKTVISOR_TAG=${{ github.event.inputs.pktvisor_tag }} make agent_debug
fi
- name: Login to Docker Hub orbcommunity
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
username: ${{ secrets.ORB_DOCKERHUB_USERNAME }}
password: ${{ secrets.ORB_DOCKERHUB_TOKEN }}

- name: Push agent container
run: |
docker push -a ns1labs/orb-agent
- name: Push agent container orbcommunity
if: github.event_name != 'pull_request'
run: docker push -a orbcommunity/orb-agent
186 changes: 0 additions & 186 deletions .github/workflows/deploy-prod.yml

This file was deleted.

Loading

0 comments on commit 2094860

Please sign in to comment.