Skip to content

v1.2.9

v1.2.9 #69

Workflow file for this run

name: Build
concurrency:
group: "${{ github.repository }}${{ github.ref }}-release"
on:
release:
types:
- published
env:
REGISTRY: us-central1-docker.pkg.dev/main-383408/otterize
jobs:
push-dockerhub:
name: Push to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Checkout IAMLive fork
uses: actions/checkout@v2
with:
repository: otterize/iamlive
path: iamlive
ref: main
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@master
with:
driver-opts: network=host
- name: Login to GCR
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: _json_key_base64
password: ${{ secrets.B64_GCLOUD_SERVICE_ACCOUNT_JSON}}
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: otterize
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Push to Docker Hub - Mapper
uses: docker/build-push-action@v2
with:
context: .github/workflows
file: .github/workflows/release.Dockerfile
tags: otterize/network-mapper:latest,otterize/network-mapper:${{ github.ref_name }}
push: true
network: host
platforms: linux/amd64,linux/arm64
build-args: |
"VERSION=${{ github.ref_name }}"
"SOURCE_IMAGE=${{ env.REGISTRY }}/mapper:${{ github.sha }}"
- name: Push to Docker Hub - Sniffer
uses: docker/build-push-action@v2
with:
context: .github/workflows
file: .github/workflows/release.Dockerfile
tags: otterize/network-mapper-sniffer:latest,otterize/network-mapper-sniffer:${{ github.ref_name }}
push: true
network: host
platforms: linux/amd64,linux/arm64
build-args: |
"VERSION=${{ github.ref_name }}"
"SOURCE_IMAGE=${{ env.REGISTRY }}/sniffer:${{ github.sha }}"
- name: Push to Docker Hub - Kafka Watcher
uses: docker/build-push-action@v2
with:
context: .github/workflows
file: .github/workflows/release.Dockerfile
tags: otterize/network-mapper-kafka-watcher:latest,otterize/network-mapper-kafka-watcher:${{ github.ref_name }}
push: true
network: host
platforms: linux/amd64,linux/arm64
build-args: |
"VERSION=${{ github.ref_name }}"
"SOURCE_IMAGE=${{ env.REGISTRY }}/kafka-watcher:${{ github.sha }}"
- name: Push to Docker Hub - IAMLive
uses: docker/build-push-action@v2
with:
context: ./iamlive/
file: ./iamlive/Dockerfile
tags: otterize/network-mapper-iamlive:latest,otterize/network-mapper-iamlive:${{ github.ref_name }}
push: true
network: host
platforms: linux/amd64,linux/arm64
build-args: |
"VERSION=${{ github.ref_name }}"
"SOURCE_IMAGE=${{ env.REGISTRY }}/iamlive:${{ github.sha }}"
commit-latest-build-tag-to-helm-chart:
name: Commit Latest Build Tag
runs-on: ubuntu-latest
needs: push-dockerhub
steps:
- name: Checkout
uses: actions/checkout@v3
with:
repository: "otterize/helm-charts"
token: ${{ secrets.OTTERIZEBOT_GITHUB_TOKEN }}
ref: main
- name: Update appVersion in chart.yaml
uses: mikefarah/yq@master
with:
cmd: yq -i '.appVersion = "${{ github.ref_name }}"' 'network-mapper/Chart.yaml'
- name: Setup git config
run: |
git config user.name "otterizebot"
git config user.email "[email protected]"
- name: Commit
run: |
git add --all
git commit -m "Setting latest tag in network-mapper helm chart repo to ${{ github.ref_name }}"
git push origin HEAD