Files
open-cluster-management/.github/workflows/go-postsubmit.yml
2021-06-26 14:20:02 -04:00

41 lines
1.1 KiB
YAML

name: GoPostSubmit
on:
push:
branches:
- main
- release-*
workflow_dispatch: {}
env:
# Common versions
GO_VERSION: '1.16'
GO_REQUIRED_MIN_VERSION: ''
GOPATH: '/home/runner/work/registration-operator/registration-operator/go'
defaults:
run:
working-directory: go/src/open-cluster-management.io/registration-operator
jobs:
images:
name: images
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v2
with:
fetch-depth: 1
path: go/src/open-cluster-management.io/registration-operator
- name: install Go
uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
- name: install imagebuilder
run: go install github.com/openshift/imagebuilder/cmd/imagebuilder@v1.2.1
- name: images
run: make 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/registration-operator:latest