Skip to content

Commit

Permalink
change GH Actions env for v0.3 (#398)
Browse files Browse the repository at this point in the history
* change GH Actions env for v0.3

* change GH Actions triggers for v0.10

* using Build environment now

* using E2E Tests and Release environment now

* now using GH_PAT

* review comments

* review comments
  • Loading branch information
Rohitrajak1807 authored Dec 22, 2022
1 parent a1716f4 commit 9a60a5d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 13 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
name: Go
name: Unit Tests and Build

on:
push:
branches:
- main
- v0.3
- v0.9
pull_request:
branches:
- main
- v0.3
- v0.9

jobs:
build:
build_and_unit_test:
environment: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- 'v0.3*'
jobs:
goreleaser:
environment: arlon
environment: E2E Tests and Release
runs-on: ubuntu-latest
steps:
-
Expand Down Expand Up @@ -49,6 +49,6 @@ jobs:
args: release --rm-dist
env:
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
6 changes: 1 addition & 5 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,16 @@
# separate terms of service, privacy policy, and support
# documentation.

name: build
name: Trivy Code Scan

on:
push:
branches:
- main
- v0.3
- v0.9
pull_request:
# The branches below must be a subset of the branches above
branches:
- main
- v0.3
- v0.9
schedule:
- cron: '28 1 * * 0'

Expand Down

0 comments on commit 9a60a5d

Please sign in to comment.