diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 08d65b4a6..028e33574 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,12 +1,9 @@ name: Go - on: [push, pull_request] - env: QUAY_PATH: quay.io/brancz/kube-rbac-proxy go-version: '1.23' kind-version: 'v0.24.0' - jobs: check-license: runs-on: ubuntu-latest @@ -83,23 +80,23 @@ jobs: name: Publish container image to Quay if: github.event_name == 'push' needs: - - check-license - - generate - - build - - unit-tests - - e2e-tests + - check-license + - generate + - build + - unit-tests + - e2e-tests steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Setup golang for building - uses: actions/setup-go@v2 - with: - go-version: ${{ env.go-version }} - - name: Login to Quay.io - uses: docker/login-action@v1 - with: - registry: quay.io - username: ${{ secrets.QUAY_USERNAME }} - password: ${{ secrets.QUAY_PASSWORD }} - - name: Build images and push - run: ./scripts/publish.sh + - name: Checkout + uses: actions/checkout@v2 + - name: Setup golang for building + uses: actions/setup-go@v2 + with: + go-version: ${{ env.go-version }} + - name: Login to Quay.io + uses: docker/login-action@v1 + with: + registry: quay.io + username: ${{ secrets.QUAY_USERNAME }} + password: ${{ secrets.QUAY_PASSWORD }} + - name: Build images and push + run: ./scripts/publish.sh