Merge pull request #247 from timdengyun/cp_sync_ncp4.1.2.1_manifest_c… #17
Workflow file for this run
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 and push a release image | |
on: | |
push: | |
tags: | |
- v* | |
jobs: | |
build: | |
runs-on: [ubuntu-latest] | |
steps: | |
- name: Set up Go 1.21 | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.21.5 | |
cache: false | |
- uses: actions/checkout@v4 | |
- name: Build Operator image and push to registry | |
env: | |
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | |
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | |
TAG: ${{ github.ref }} | |
run: | | |
VERSION="${TAG:10}" make | |
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin | |
docker push vmware/nsx-container-plugin-operator:"${TAG:10}" |