Merge pull request #234 from timdengyun/sync_ncp4.1.2_manifest_configmap #26
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: Build image | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
build-image: | |
runs-on: [ubuntu-latest] | |
steps: | |
- name: Set up Go 1.19 | |
uses: actions/setup-go@v1 | |
with: | |
go-version: 1.19 | |
- name: Check-out code | |
uses: actions/checkout@v2 | |
- name: Build image | |
run: make | |
- name: Push images to registry | |
if: ${{ github.repository == 'vmware/nsx-container-plugin-operator' && github.event_name == 'push' && github.ref == 'refs/heads/main' }} | |
env: | |
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | |
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | |
run: | | |
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin | |
docker push vmware/nsx-container-plugin-operator:latest |