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

Commit

Permalink
APIGOV-27565 - rework actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dfeldick committed May 9, 2024
1 parent bfa873b commit fa6274b
Show file tree
Hide file tree
Showing 6 changed files with 103 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-discovery-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Discovery Agent Docker
on:
push:
tags:
- "*"
- "xxx"

jobs:
buildDiscoveryAgentDocker:
Expand Down
97 changes: 97 additions & 0 deletions .github/workflows/build-docker-images.yml
Original file line number Diff line number Diff line change
@@ -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"

2 changes: 1 addition & 1 deletion .github/workflows/build-traceability-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Traceability Agent Docker
on:
push:
tags:
- "*"
- "xxx"

jobs:
buildTraceabilityAgentDocker:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/create-tag-for-release.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/webmethods-agents-release.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
Binary file added bin/discovery
Binary file not shown.

0 comments on commit fa6274b

Please sign in to comment.