diff --git a/.github/workflows/build-discovery-docker.yml b/.github/workflows/build-discovery-docker.yml index 18ddc8d..b7a422b 100644 --- a/.github/workflows/build-discovery-docker.yml +++ b/.github/workflows/build-discovery-docker.yml @@ -3,7 +3,7 @@ name: Discovery Agent Docker on: push: tags: - - "*" + - "xxx" jobs: buildDiscoveryAgentDocker: diff --git a/.github/workflows/build-docker-images.yml b/.github/workflows/build-docker-images.yml new file mode 100644 index 0000000..7039a70 --- /dev/null +++ b/.github/workflows/build-docker-images.yml @@ -0,0 +1,97 @@ +name: Discovery Agent Docker + +on: + push: + tags: + - "*" + +jobs: + buildDiscoveryAgentDocker: + env: + GOFLAGS: "-mod=mod" + GOWORK: "off" + IMAGE_NAME: webmethods_discovery_agent + ORG_NAME: Axway + runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v4 + # - name: Create commit_id & version environment variables + # run: | + # commitId=$(git rev-parse --short HEAD) + # echo "commitId=$commitId" >> $GITHUB_ENV + # - name: Log in to the Container registry + # uses: docker/login-action@v3 + # with: + # registry: ghcr.io + # username: ${{ github.actor }} + # password: ${{ secrets.GITHUB_TOKEN }} + + # - name: Extract metadata (tags, labels) for Docker + # id: meta + # uses: docker/metadata-action@v5 + # with: + # flavor: latest=false + # images: ghcr.io/${{ env.ORG_NAME }}/${{ env.IMAGE_NAME }} + + # - name: Build and push Docker image + # uses: docker/build-push-action@v5 + # with: + # context: . + # file: build/discovery.Dockerfile + # push: true + # tags: ${{ steps.meta.outputs.tags }} + # labels: ${{ steps.meta.outputs.labels }} + # build-args: | + # VERSION=${{ github.ref_name }} + # COMMIT_ID=${{ env.commitId }} + + buildTraceabilityAgentDocker: + env: + GOFLAGS: "-mod=mod" + GOWORK: "off" + IMAGE_NAME: webmethods_traceability_agent + ORG_NAME: Axway + runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v4 + # - name: Create commit_id & version environment variables + # run: | + # commitId=$(git rev-parse --short HEAD) + # echo "commitId=$commitId" >> $GITHUB_ENV + # - name: Log in to the Container registry + # uses: docker/login-action@v3 + # with: + # registry: ghcr.io + # username: ${{ github.actor }} + # password: ${{ secrets.GITHUB_TOKEN }} + + # - name: Extract metadata (tags, labels) for Docker + # id: meta + # uses: docker/metadata-action@v5 + # with: + # flavor: latest=false + # images: ghcr.io/${{ env.ORG_NAME }}/${{ env.IMAGE_NAME }} + + # - name: Build and push Docker image + # uses: docker/build-push-action@v5 + # with: + # context: . + # file: build/traceability.Dockerfile + # push: true + # tags: ${{ steps.meta.outputs.tags }} + # labels: ${{ steps.meta.outputs.labels }} + # build-args: | + # VERSION=${{ github.ref_name }} + # COMMIT_ID=${{ env.commitId }} + + notifyTeamsChannel: + runs-on: ubuntu-latest + needs: [buildDiscoveryAgentDocker, buildTraceabilityAgentDocker] + steps: + - name: Notify Teams channel + env: + TEAMS_WEBHOOK_URL: ${{ secrets.TEAMS_WEBHOOK_URL }} + TAG: ${{ github.ref_name }} + # run: ./release.sh + run: "echo HELLO" + \ No newline at end of file diff --git a/.github/workflows/build-traceability-docker.yml b/.github/workflows/build-traceability-docker.yml index 34b12f9..d479b5f 100644 --- a/.github/workflows/build-traceability-docker.yml +++ b/.github/workflows/build-traceability-docker.yml @@ -3,7 +3,7 @@ name: Traceability Agent Docker on: push: tags: - - "*" + - "xxx" jobs: buildTraceabilityAgentDocker: diff --git a/.github/workflows/create-tag-for-release.yml b/.github/workflows/create-tag-for-release.yml index 078df1d..0292747 100644 --- a/.github/workflows/create-tag-for-release.yml +++ b/.github/workflows/create-tag-for-release.yml @@ -1,4 +1,4 @@ -# This action gets triggered by a closed PR on branch named 'APIGOV-UpdateSDK' +# This action gets triggered by a closed PR name: Create tag for release on: @@ -7,6 +7,7 @@ on: - closed jobs: + # only run this job if the merge name is "APIGOV-UpdateSDK", which comes from the automated release if_SDK_update_merged: if: github.event.pull_request.merged == true && startsWith(github.head_ref, 'APIGOV-UpdateSDK') runs-on: ubuntu-latest diff --git a/.github/workflows/webmethods-agents-release.yml b/.github/workflows/webmethods-agents-release.yml index 753c60c..ae216b3 100644 --- a/.github/workflows/webmethods-agents-release.yml +++ b/.github/workflows/webmethods-agents-release.yml @@ -1,9 +1,9 @@ -name: Release webMethods Agents +# this action will upload the assets (name: Upload assets to release on: push: tags: - - "*" + - "xxxx" jobs: buildDiscoveryAgent: diff --git a/bin/discovery b/bin/discovery new file mode 100755 index 0000000..1648f3a Binary files /dev/null and b/bin/discovery differ