Skip to content

Bump actions/setup-go from 3 to 5 #1168

Bump actions/setup-go from 3 to 5

Bump actions/setup-go from 3 to 5 #1168

Workflow file for this run

name: Build and push the latest image if needed
on:
pull_request:
branches:
- main
- release-*
push:
branches:
- main
- release-*
jobs:
build-ipfix-collector:
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- name: Build ipfix-collector Docker image
run: 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/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 antrea/ipfix-collector:latest
build-kafka-consumer:
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- name: Build kafka-consumer Docker image
run: make docker-consumer
- name: Push kafka-consumer Docker image to Antrea Docker registry
if: ${{ github.repository == 'vmware/go-ipfix' && 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 antrea/kafka-consumer:latest