Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

APIGOV-00000 - sdk v1.1.63 #43

Merged
merged 1 commit into from
Sep 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
95 changes: 95 additions & 0 deletions .github/workflows/webmethods-agents-release.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 0 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down