watch application-manager SA secrets in the customized app addon NS (… #347
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: GoPostSubmit | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: {} | |
env: | |
# Common versions | |
GO_VERSION: '1.21' | |
GO_REQUIRED_MIN_VERSION: '' | |
GOPATH: '/home/runner/work/multicloud-operators-subscription/multicloud-operators-subscription/go' | |
defaults: | |
run: | |
working-directory: go/src/github.com/open-cluster-management/multicloud-operators-subscription | |
jobs: | |
coverage: | |
name: test | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
path: go/src/github.com/open-cluster-management/multicloud-operators-subscription | |
- name: install Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: test | |
run: make test | |
- name: report-coverage | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: /home/runner/work/multicloud-operators-subscription/multicloud-operators-subscription/go/src/github.com/open-cluster-management/multicloud-operators-subscription/coverage.out,/home/runner/work/multicloud-operators-subscription/multicloud-operators-subscription/go/src/github.com/open-cluster-management/multicloud-operators-subscription/addon_coverage.out | |
flags: unit | |
name: unit | |
verbose: true | |
fail_ci_if_error: true | |
images: | |
name: images | |
runs-on: ubuntu-latest | |
if: github.repository_owner == 'open-cluster-management-io' | |
steps: | |
- name: checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
path: go/src/github.com/open-cluster-management/multicloud-operators-subscription | |
- name: install Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: install imagebuilder | |
run: go install github.com/openshift/imagebuilder/cmd/[email protected] | |
- name: images | |
run: make build-images | |
- name: push | |
run: | | |
echo ${{ secrets.DOCKER_PASSWORD }} | docker login quay.io --username ${{ secrets.DOCKER_USER }} --password-stdin | |
docker push quay.io/open-cluster-management/multicloud-operators-subscription:latest |