Skip to content

Commit 5acd885

Browse files
committed
Merge branch 'master' into 'fb-dia-1748'
Workflow run: https://github.com/HumanSignal/Adala/actions/runs/12707896133
2 parents e45acb2 + d9a58be commit 5acd885

6 files changed

+29
-28
lines changed

.github/workflows/argocd-destroy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ jobs:
122122
BRANCH_NAME: ${{ github.event.pull_request.head.ref || github.ref_name }}
123123
run: |
124124
set -x
125-
pretty_branch_name="$(echo -n "${BRANCH_NAME#refs/heads/}" | sed 's#/#-#g' | sed 's#_#-#g'| sed 's#\.#-#g' | tr '[:upper:]' '[:lower:]' | cut -c1-25)"
125+
pretty_branch_name="$(echo -n "${BRANCH_NAME#refs/heads/}" | sed -E 's#[/_\.-]+#-#g' | tr '[:upper:]' '[:lower:]' | cut -c1-25 | sed -E 's#-$##g')"
126126
echo "pretty_branch_name=${pretty_branch_name}" >> "${GITHUB_OUTPUT}"
127127
128128
- name: Delete ArgoCD App

.github/workflows/argocd-scaledown.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ jobs:
122122
BRANCH_NAME: ${{ github.event.pull_request.head.ref || github.ref_name }}
123123
run: |
124124
set -x
125-
pretty_branch_name="$(echo -n "${BRANCH_NAME#refs/heads/}" | sed 's#/#-#g' | sed 's#_#-#g'| sed 's#\.#-#g' | tr '[:upper:]' '[:lower:]' | cut -c1-25)"
125+
pretty_branch_name="$(echo -n "${BRANCH_NAME#refs/heads/}" | sed -E 's#[/_\.-]+#-#g' | tr '[:upper:]' '[:lower:]' | cut -c1-25 | sed -E 's#-$##g')"
126126
echo "pretty_branch_name=${pretty_branch_name}" >> "${GITHUB_OUTPUT}"
127127
128128
- name: Scaledown ArgoCD App

.github/workflows/docker-build.yml

+17-18
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ jobs:
6363
BRANCH_NAME: ${{ inputs.branch_name }}
6464
run: |
6565
set -x
66-
pretty_branch_name="$(echo -n "${BRANCH_NAME#refs/heads/}" | sed 's#/#-#g' | sed 's#_#-#g'| sed 's#\.#-#g' | tr '[:upper:]' '[:lower:]')"
67-
echo "pretty_branch_name=$pretty_branch_name" >> $GITHUB_OUTPUT
66+
pretty_branch_name="$(echo -n "${BRANCH_NAME#refs/heads/}" | sed -E 's#[/_\.-]+#-#g' | tr '[:upper:]' '[:lower:]' | cut -c1-25 | sed -E 's#-$##g')"
67+
echo "pretty_branch_name=${pretty_branch_name}" >> "${GITHUB_OUTPUT}"
6868
current_time="$(date +'%Y%m%d.%H%M%S')"
6969
branch="-${pretty_branch_name}"
7070
short_sha="$(git rev-parse --short HEAD)"
@@ -76,29 +76,24 @@ jobs:
7676
echo "image_version=$version" >> $GITHUB_OUTPUT
7777
7878
- name: Set up Docker Buildx
79-
uses: docker/setup-buildx-action@v3.7.1
79+
uses: docker/setup-buildx-action@v3.8.0
8080

8181
- name: Login to DockerHub
8282
uses: docker/[email protected]
8383
with:
8484
username: ${{ vars.DOCKERHUB_USERNAME }}
8585
password: ${{ secrets.DOCKERHUB_TOKEN }}
8686

87-
- name: Calculate Docker tags
88-
id: calculate-docker-tags
89-
uses: actions/github-script@v7
90-
env:
91-
TAGS: "${{ steps.version.outputs.image_version }},${{ steps.version.outputs.pretty_branch_name }}"
92-
IMAGE_NAME: ${{ env.IMAGE_NAME }}
87+
- name: Extract Docker metadata
88+
id: meta
89+
uses: docker/metadata-action@v5
9390
with:
94-
script: |
95-
const raw_tags_input = process.env.TAGS;
96-
const image_name = process.env.IMAGE_NAME;
97-
98-
const tags = raw_tags_input.split(',').map(x => x.trim());
99-
const docker_tags = tags.map(x => `${image_name}:${x}`).join(',');
100-
console.log(docker_tags);
101-
core.setOutput("docker-tags", docker_tags);
91+
images: ${{ env.IMAGE_NAME }}
92+
labels: |
93+
org.opencontainers.image.revision=${{ inputs.sha }}
94+
tags: |
95+
type=raw,value=${{ steps.version.outputs.image_version }}
96+
type=raw,value=${{ steps.version.outputs.pretty_branch_name }}
10297
10398
- name: Push Docker image
10499
uses: docker/[email protected]
@@ -107,7 +102,11 @@ jobs:
107102
context: .
108103
file: Dockerfile.app
109104
push: ${{ steps.actor-membership.outputs.active }}
110-
tags: ${{ steps.calculate-docker-tags.outputs.docker-tags }}
105+
platforms: linux/amd64,linux/arm64
106+
sbom: true
107+
provenance: true
108+
tags: ${{ steps.meta.outputs.tags }}
109+
labels: ${{ steps.meta.outputs.labels }}
111110
cache-from: type=gha
112111
cache-to: type=gha,mode=max
113112

.github/workflows/follow-merge-upstream-repo-sync.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,14 @@ jobs:
142142
This PR was automaticaly generated via Follow Merge.
143143
Please ensure that all linked upstream Pull Requests are merged before proceeding with this one.
144144
145-
- name: Add PR Reviewers
146-
uses: ./.github/actions-hub/actions/github-add-pull-request-reviewers
145+
- name: Add PR Assignees
146+
if: steps.fm.outputs.assignees
147+
uses: ./.github/actions-hub/actions/github-add-pull-request-assignees
147148
continue-on-error: true
148149
with:
149150
github_token: ${{ secrets.GIT_PAT }}
150151
pullrequest_number: "${{ steps.get-pr.outputs.number }}"
151-
reviewers: "${{ steps.fm.outputs.actor }}"
152+
assignees: "${{ steps.fm.outputs.assignees }}"
152153

153154
- name: Link PR
154155
uses: ./.github/actions-hub/actions/github-link-upstream-pull-request

.github/workflows/tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
matrix.os == 'ubuntu-latest' &&
9191
matrix.python-version == '3.12' &&
9292
github.event.pull_request.user.login != 'dependabot[bot]'
93-
uses: codecov/[email protected].1
93+
uses: codecov/[email protected].2
9494
with:
9595
files: tests/coverage.xml
9696
token: ${{ secrets.CODECOV_TOKEN }}

poetry.lock

+5-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)