[feat] api list all servers by secgroup ID api #138
Workflow file for this run
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
name: Release VngCloud GoSDK project | |
on: | |
push: | |
tags: | |
- 'v*' | |
pull_request: | |
tags: | |
- 'v*' | |
jobs: | |
build: | |
name: GoReleaser build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Send alert that a new commit has been created | |
uses: appleboy/telegram-action@master | |
with: | |
to: ${{ secrets.TELEGRAM_TO }} | |
token: ${{ secrets.TELEGRAM_TOKEN }} | |
format: markdown | |
message: | | |
🚀 *NEW COMMIT* | |
*Repository*: `${{ github.repository }}` | |
*Author*: `${{ github.actor }}` | |
*Action*: Building `vngcloud-go-sdk:${{ github.ref_name }}` package | |
*See changes*: https://github.com/${{ github.repository }}/commit/${{github.sha}} | |
*See workflow*: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # See: https://goreleaser.com/ci/actions/ | |
- name: Set up Go 1.22 | |
continue-on-error: true | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.22 | |
id: go | |
- name: Run GoReleaser | |
continue-on-error: true | |
uses: goreleaser/goreleaser-action@v5 | |
with: | |
version: latest | |
args: release --clean | |
env: | |
GITHUB_TOKEN: ${{ secrets.GO_RELEASER_GITHUB_TOKEN }} | |
- name: Send alert that the image has been built failed | |
uses: appleboy/telegram-action@master | |
if: ${{ failure() }} | |
with: | |
to: ${{ secrets.TELEGRAM_TO }} | |
token: ${{ secrets.TELEGRAM_TOKEN }} | |
format: markdown | |
message: | | |
⛔ *ERROR* | |
*Repository*: `${{ github.repository }}` | |
*Author*: `${{ github.actor }}` | |
*Action*: Failed to build `vngcloud-go-sdk:${{ github.ref_name }}` package | |
*See changes*: https://github.com/${{ github.repository }}/commit/${{github.sha}} | |
*See workflow*: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} | |
- name: Send alert that the image has been built success | |
uses: appleboy/telegram-action@master | |
if: ${{ success() }} | |
with: | |
to: ${{ secrets.TELEGRAM_TO }} | |
token: ${{ secrets.TELEGRAM_TOKEN }} | |
format: markdown | |
message: | | |
📦 *SUCCESS* | |
*Repository*: `${{ github.repository }}` | |
*Author*: `${{ github.actor }}` | |
*Action*: The `vngcloud-go-sdk:${{ github.ref_name }}` package is built successfully | |
*See changes*: https://github.com/${{ github.repository }}/commit/${{github.sha}} | |
*See workflow*: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} |