Skip to content

Merge pull request #234 from timdengyun/sync_ncp4.1.2_manifest_configmap #26

Merge pull request #234 from timdengyun/sync_ncp4.1.2_manifest_configmap

Merge pull request #234 from timdengyun/sync_ncp4.1.2_manifest_configmap #26

Workflow file for this run

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