diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a4f668f5..9b5c6818 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,14 +18,14 @@ jobs: - uses: actions/checkout@v2 - name: Build ipfix-collector Docker image run: | - make collector - make docker-collector - - name: Push ipfix-collector Docker image to harbor registry + make collector + make docker-collector + - name: Push ipfix-collector Docker image to Antrea Docker registry if: ${{ github.repository == 'vmware/go-ipfix' && github.event_name == 'push' && github.ref == 'refs/heads/master' }} env: - HARBOR_REGISTRY: ${{ secrets.HARBOR_REGISTRY }} - HARBOR_USERNAME: ${{ secrets.HARBOR_USERNAME }} - HARBOR_PASSWORD: ${{ secrets.HARBOR_PASSWORD }} + DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} + DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} run: | - echo "$HARBOR_PASSWORD" | docker login -u "$HARBOR_USERNAME" --password-stdin $HARBOR_REGISTRY - docker push goipfix/ipfix-collector:latest \ No newline at end of file + echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin + docker tag goipfix/ipfix-collector antrea/ipfix-collector:latest + docker push antrea/ipfix-collector:latest \ No newline at end of file diff --git a/.github/workflows/build_tag.yml b/.github/workflows/build_tag.yml index a97c8f9f..19e702e2 100644 --- a/.github/workflows/build_tag.yml +++ b/.github/workflows/build_tag.yml @@ -10,15 +10,15 @@ jobs: runs-on: [ubuntu-18.04] steps: - uses: actions/checkout@v2 - - name: Build go-ipfix Docker images and push to harbor registry + - name: Build go-ipfix Docker images and push to Antrea Docker registry env: - HARBOR_REGISTRY: ${{ secrets.HARBOR_REGISTRY }} - HARBOR_USERNAME: ${{ secrets.HARBOR_USERNAME }} - HARBOR_PASSWORD: ${{ secrets.HARBOR_PASSWORD }} + DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} + DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} TAG: ${{ github.ref }} run: | make collector make docker-collector - echo "$HARBOR_PASSWORD" | docker login -u "$HARBOR_USERNAME" --password-stdin $HARBOR_REGISTRY - docker tag goipfix/ipfix-collector goipfix/ipfix-collector:"${TAG:10}" - docker push goipfix/ipfix-collector:"${TAG:10}" + echo "$DOCKER_USERNAME" + echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin + docker tag goipfix/ipfix-collector antrea/ipfix-collector:"${TAG:10}" + docker push antrea/ipfix-collector:"${TAG:10}"