Skip to content

Commit 211bec9

Browse files
ci: update gitops workflow to run on all branches and add explicit file paths
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
1 parent 8273756 commit 211bec9

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,18 @@ jobs:
4242
# =========================
4343
update_gitops:
4444
needs: [build]
45-
if: (contains(github.ref, '-beta') || contains(github.ref, '-rc')) && needs.build.result == 'success'
45+
if: needs.build.result == 'success'
4646
uses: LerianStudio/github-actions-shared-workflows/.github/workflows/gitops-update.yml@v1.11.0
4747
with:
4848
runner_type: "firmino-lxc-runners"
4949
gitops_repository: "LerianStudio/midaz-firmino-gitops"
5050
gitops_server: "firmino"
5151
app_name: "reporter"
5252
artifact_pattern: "gitops-tags-reporter-*"
53+
gitops_file_dev: "gitops/environments/firmino/helmfile/applications/dev/reporter/values.yaml"
54+
gitops_file_stg: "gitops/environments/firmino/helmfile/applications/stg/reporter/values.yaml"
55+
gitops_file_prd: "gitops/environments/firmino/helmfile/applications/prd/reporter/values.yaml"
56+
gitops_file_sandbox: "gitops/environments/firmino/helmfile/applications/sandbox/reporter/values.yaml"
5357
yaml_key_mappings: '{"manager.tag": ".manager.image.tag", "worker.tag": ".worker.image.tag"}'
5458
configmap_updates: '{"manager.tag": ".manager.configmap.VERSION", "worker.tag": ".worker.configmap.VERSION"}'
5559
commit_message_prefix: "reporter"
@@ -62,8 +66,8 @@ jobs:
6266
# E2E TESTS
6367
# =========================
6468
api-dog-e2e-tests:
65-
needs: update_gitops
66-
if: (contains(github.ref, '-beta') || contains(github.ref, '-rc')) && needs.update_gitops.result == 'success'
69+
needs: [update_gitops]
70+
if: needs.update_gitops.result == 'success'
6771
uses: LerianStudio/github-actions-shared-workflows/.github/workflows/api-dog-e2e-tests.yml@v1.11.0
6872
with:
6973
runner_type: "firmino-lxc-runners"

components/manager/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@ HEALTHCHECK --interval=10s --timeout=5s --retries=5 --start-period=15s \
5959
CMD wget --no-verbose --tries=1 --spider http://localhost:4005/health || exit 1
6060

6161
# Set the entrypoint to the manager binary
62-
ENTRYPOINT ["/app/manager"]
62+
ENTRYPOINT ["/app/manager"]

components/worker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,4 @@ HEALTHCHECK --interval=10s --timeout=5s --retries=5 --start-period=15s \
7878
CMD wget --no-verbose --tries=1 --spider http://localhost:4006/health || exit 1
7979

8080
# Set the entrypoint to the worker binary
81-
ENTRYPOINT ["/app/worker"]
81+
ENTRYPOINT ["/app/worker"]

0 commit comments

Comments
 (0)