Skip to content

Commit

Permalink
Merge pull request #10 from tokamak-network/OR-1745--thanos-event-lis…
Browse files Browse the repository at this point in the history
…tener-update-kustomize

[OR-1745] update kustomize
  • Loading branch information
steven94kr authored Jul 9, 2024
2 parents 12e1c8a + 1e020c2 commit 54fd320
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/release-docker-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Publish thanos-event-listener (nightly)

on:
push:
branches:
branches:
- main

jobs:
Expand All @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
# map the step outputs to job outputs
outputs:
nightly-docker-tag: ${{ steps.docker-image-name.outputs.nightly-docker-tag }}
nightly-docker-tag: ${{ steps.docker-image-name.outputs.nightly-docker-tag }}
steps:
- name: Check out source code
uses: actions/checkout@v4
Expand Down Expand Up @@ -44,7 +44,7 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_ACCESS_TOKEN_USERNAME }}
password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN_SECRET }}

- name: Build and Push
uses: docker/build-push-action@v5
with:
Expand All @@ -53,7 +53,7 @@ jobs:
file: ./Dockerfile
push: true
tags: tokamaknetwork/thanos-event-listener:${{ needs.version.outputs.nightly-docker-tag }}

update-kustomize:
name: Update image version in kustomize manifest file (nightly)
needs: [version, thanos-event-listener]
Expand All @@ -74,12 +74,12 @@ jobs:

- name: Update notif_thanos Kubernetes resources
run: |
cd tokamak-infra/apps/notif_thanos/kustomize/overlays/aws/sepolia
cd tokamak-infra/apps/notif_thanos/kustomize/overlays/aws/thanos-sepolia
kustomize edit set image tokamaknetwork/thanos-event-listener:${{ needs.version.outputs.nightly-docker-tag}}
- name: Show updated Kubernetes resources
run: |
cd tokamak-infra/apps/notif_thanos/kustomize/overlays/aws/sepolia
cd tokamak-infra/apps/notif_thanos/kustomize/overlays/aws/thanos-sepolia
cat kustomization.yml
- name: Commit and push changes
Expand All @@ -88,4 +88,4 @@ jobs:
default_author: github_actions
github_token: ${{ secrets.ACCESS_TOKEN }}
message: '[AUTO] Update thanos-event-listener images tag for sepolia'
cwd: 'tokamak-infra/'
cwd: 'tokamak-infra/'

0 comments on commit 54fd320

Please sign in to comment.