-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
39 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,21 +29,21 @@ jobs: | |
echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT | ||
echo "sdkversion=$(grep github.com/Axway/agent-sdk go.mod | awk '{print $2}')" >> $GITHUB_OUTPUT | ||
echo "commit=$(git rev-parse --short ${{ github.sha }})" >> $GITHUB_OUTPUT | ||
- 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: | ||
|
@@ -70,29 +70,29 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set outputs | ||
id: vars | ||
run: | | ||
echo "date=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_OUTPUT | ||
echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT | ||
echo "sdkversion=$(grep github.com/Axway/agent-sdk go.mod | awk '{print $2}')" >> $GITHUB_OUTPUT | ||
echo "commit=$(git rev-parse --short ${{ github.sha }})" >> $GITHUB_OUTPUT | ||
- 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: | ||
|
@@ -108,14 +108,37 @@ jobs: | |
sdk_version=${{ steps.vars.outputs.sdkversion }} | ||
commit_id=${{ steps.vars.outputs.commit }} | ||
archiveHelm: | ||
needs: testAgents | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: olegtarasov/[email protected] | ||
id: tagName | ||
with: | ||
tagRegex: "v(.*)" | ||
tagRegexGroup: 1 | ||
- name: Update chart versions | ||
run: | | ||
sed helm/kong-agents/Chart.yaml -i -e "s/^appVersion.*/appVersion:\ \"v${GIT_TAG_NAME}\"/" | ||
sed helm/kong-agents/Chart.yaml -i -e "s/^version.*/version:\ ${GIT_TAG_NAME}/" | ||
- name: Archive chart | ||
run: | | ||
tar czf kong-agents.tgz -C helm/kong-agents . | ||
- name: Upload chart to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: kong-agents.tgz | ||
tag: ${{ github.ref_name }} | ||
|
||
notifyTeamsChannel: | ||
runs-on: ubuntu-latest | ||
needs: [buildDiscoveryAgentDocker, buildTraceabilityAgentDocker] | ||
needs: [buildDiscoveryAgentDocker, buildTraceabilityAgentDocker, archiveHelm] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Notify Teams channel | ||
env: | ||
TEAMS_WEBHOOK_URL: ${{ secrets.TEAMS_WEBHOOK_URL }} | ||
TAG: ${{ github.ref_name }} | ||
run: ./release.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,4 @@ jobs: | |
working-directory: . | ||
run: | | ||
make test | ||