From adaa4ab94e00f1615efd3fed8d946e276c2c0880 Mon Sep 17 00:00:00 2001 From: dfeldick Date: Thu, 21 Sep 2023 14:40:44 -0700 Subject: [PATCH] APIGOV-00000 - sdk v1.1.63 --- .../workflows/webmethods-agents-release.yml | 95 +++++++++++++++++++ Makefile | 4 - go.mod | 2 +- go.sum | 4 +- 4 files changed, 98 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/webmethods-agents-release.yml diff --git a/.github/workflows/webmethods-agents-release.yml b/.github/workflows/webmethods-agents-release.yml new file mode 100644 index 0000000..4704699 --- /dev/null +++ b/.github/workflows/webmethods-agents-release.yml @@ -0,0 +1,95 @@ +name: Release webMethods Agents + +on: + push: + tags: + - "*" + +jobs: + buildDiscoveryAgent: + env: + GOFLAGS: "-mod=mod" + GOWORK: "off" + defaults: + run: + working-directory: ${{ env.GOPATH }}/discovery + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: 1.21 + + - name: Build discovery agent + working-directory: discovery + run: | + git rev-parse --short HEAD > commit_id + echo "${{ github.ref_name }}" > version + make build + + - name: Upload release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: discovery/bin/webmethods_discovery_agent + asset_name: webmethods_discovery_agent + tag: ${{ github.ref }} + overwrite: true + body: "webMethods Discovery Agent - ${{ github.ref }}" + + buildTraceabilityAgent: + env: + GOFLAGS: "-mod=mod" + GOWORK: "off" + defaults: + run: + working-directory: ${{ env.GOPATH }}/traceability + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: 1.19 + + - name: Build traceability agent + working-directory: traceability + run: | + git rev-parse --short HEAD > commit_id + echo "${{ github.ref_name }}" > version + make build + + - name: Upload release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: traceability/bin/webmethods_traceability_agent + asset_name: webmethods_traceability_agent + tag: ${{ github.ref }} + overwrite: true + body: "webMethods Traceability Agent - ${{ github.ref }}" + + - name: Upload release yaml + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: traceability/webmethods_traceability_agent.yml + asset_name: webmethods_traceability_agent.yml + tag: ${{ github.ref }} + overwrite: true + body: "webMethods Traceability Agent YAML - ${{ github.ref }}" + + notifyTeamsChannel: + needs: [buildDiscoveryAgent, buildTraceabilityAgent] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Notify Teams channel + env: + TEAMS_WEBHOOK_URL: ${{ secrets.TEAMS_WEBHOOK_URL }} + TAG: ${{ github.ref_name }} + run: ./release.sh diff --git a/Makefile b/Makefile index 009f76f..395c5b0 100644 --- a/Makefile +++ b/Makefile @@ -87,10 +87,6 @@ build-trace: build-trace-docker: @go build -o /app/traceability ./cmd/traceability/main.go -test: - mkdir -p coverage - @go test -race -short -count=1 -coverprofile=coverage/coverage.cov ${GO_PKG_LIST} - docker-build-discovery: @docker build -t webmethods_discovery_agent:latest -f ${WORKSPACE}/build/discovery.Dockerfile . @echo "Docker build complete" diff --git a/go.mod b/go.mod index e639e8b..0cf6544 100644 --- a/go.mod +++ b/go.mod @@ -13,7 +13,7 @@ replace ( ) require ( - github.com/Axway/agent-sdk v1.1.62 + github.com/Axway/agent-sdk v1.1.63 github.com/elastic/beats/v7 v7.17.5 github.com/sirupsen/logrus v1.9.3 github.com/stretchr/testify v1.8.4 diff --git a/go.sum b/go.sum index 8d4c285..cf6fce6 100644 --- a/go.sum +++ b/go.sum @@ -36,8 +36,8 @@ cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RX cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3fOKtUw0Xmo= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= -github.com/Axway/agent-sdk v1.1.62 h1:g1HjKnDUtbMrqmvJww4WWKtWiQbQIAP+7XZwQ1GPD5c= -github.com/Axway/agent-sdk v1.1.62/go.mod h1:IjZ/VyF0fQezmrxSRI7l9jEuOGYl8Hc/XkotLuIYcnw= +github.com/Axway/agent-sdk v1.1.63 h1:4ozpjwU8pqgyBEJ40jzA5rpvKpV69pQ9jMgeVK3ywdk= +github.com/Axway/agent-sdk v1.1.63/go.mod h1:IjZ/VyF0fQezmrxSRI7l9jEuOGYl8Hc/XkotLuIYcnw= github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78 h1:w+iIsaOQNcT7OZ575w+acHgRric5iCyQh+xv+KJ4HB8= github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= github.com/Azure/go-autorest/autorest v0.11.12/go.mod h1:eipySxLmqSyC5s5k1CLupqet0PSENBEDP93LQ9a8QYw=