30 Commits

Author SHA1 Message Date
bd4d6d5655 fix 2025-11-19 12:52:43 +03:00
d4987ff717 Merge branch 'main' into fix-again 2025-11-19 09:50:17 +00:00
feb7bf12ed Merge branch 'fix-again' of bb.hublab.ru:HUB/workflows into fix-again 2025-11-19 12:49:58 +03:00
99393d16ce try to fix 2025-11-19 12:49:52 +03:00
2a74089e37 Merge pull request 'fix-again' (#54) from fix-again into main
Reviewed-on: #54
2025-11-19 09:13:38 +00:00
3398c4f76f Merge branch 'main' into fix-again 2025-11-19 09:13:30 +00:00
26a57c2206 Merge branch 'fix-again' of bb.hublab.ru:HUB/workflows into fix-again 2025-11-19 12:13:19 +03:00
38d562af9a return 2025-11-19 12:13:16 +03:00
64eb83f489 Merge pull request 'just fix' (#53) from fix-again into main
Reviewed-on: #53
2025-11-19 09:02:24 +00:00
8ebded5c3f Merge branch 'main' into fix-again 2025-11-19 09:02:16 +00:00
ae79a067c4 just fix 2025-11-19 12:01:42 +03:00
6319fea371 Merge pull request 'return' (#52) from fix-again into main
Reviewed-on: #52
2025-11-19 08:41:58 +00:00
768a35108a Merge branch 'main' into fix-again 2025-11-19 08:41:36 +00:00
cc4ec94402 test 2025-11-19 11:41:17 +03:00
872706e2b6 Merge pull request 'try with new mask' (#51) from fix-again into main
Reviewed-on: #51
2025-11-19 08:23:37 +00:00
d4604aa6fb try with new mask 2025-11-19 11:23:10 +03:00
2e82989ca0 Merge pull request 'change sync option' (#50) from change-deploy into main
Reviewed-on: #50
2025-11-19 07:56:12 +00:00
a67aaf3ca9 Merge branch 'main' into change-deploy 2025-11-19 07:47:47 +00:00
5ac880d37d fix 2025-11-19 10:46:30 +03:00
fd5d7e2cd4 change sync option 2025-11-19 10:42:28 +03:00
3c01a716e6 Merge pull request 'new deploy condition' (#49) from new_notify into main
Reviewed-on: #49
2025-11-11 11:10:15 +00:00
f0f354a8d4 Merge branch 'main' into new_notify 2025-11-11 11:09:56 +00:00
8864f9585e new deploy condition 2025-11-11 14:06:46 +03:00
b7fb2ed335 Merge pull request 'new_notify' (#48) from new_notify into main
Reviewed-on: #48
2025-10-21 15:14:52 +00:00
760b6a8257 Merge branch 'main' into new_notify 2025-10-21 15:14:44 +00:00
d7bae2b72f Merge branch 'new_notify' of bb.hublab.ru:HUB/workflows into new_notify 2025-10-21 18:14:12 +03:00
2e4141834e change absolute way 2025-10-21 18:14:09 +03:00
4576ab5751 Merge pull request 'test arch' (#47) from new_notify into main
Reviewed-on: #47
2025-10-17 12:33:50 +00:00
5114bcf9fe Merge branch 'main' into new_notify 2025-10-17 12:33:45 +00:00
a6877dda7e test arch 2025-10-17 15:32:54 +03:00
3 changed files with 15 additions and 9 deletions

View File

@@ -41,11 +41,14 @@ runs:
with:
version: 3.1.3
command: app actions run ${{ inputs.environment }} migrate --kind Deployment --resource-name ${{github.event.repository.name}}
- name: Sync changes
uses: clowdhaus/argo-cd-action/@main
with:
version: 3.1.3
command: app sync ${{ inputs.environment }} --resource 'apps:Deployment:*'
- name: Sync related deployments
shell: bash
run: |
for name in $(argocd app resources ${{ inputs.environment }} | grep Deploy | grep ${{ github.event.repository.name }} | awk '{print($4)}'); do
echo "Syncing $name"
argocd app sync ${{ inputs.environment }} --resource "$name"
done
- name: Refresh secret
uses: clowdhaus/argo-cd-action/@main
with:

View File

@@ -11,6 +11,9 @@ on:
force_build:
type: boolean
default: false
arch:
type: string
default: "linux/amd64,linux/arm64/v8"
secrets:
VK_TEAMS_BOT_TOKEN:
required: true
@@ -70,7 +73,7 @@ jobs:
uses: actions/cache/restore@v4
with:
path: /cache/${{ github.repository }}/buildx-cache
key: ${{ runner.os }}-${{ github.repository }}-buildx-${{ hashFiles('Dockerfile', '**/requirements.txt', '**/*lock*', '**/package-lock.json', '**/poetry.lock') }}
key: ${{ runner.os }}-${{ github.repository }}-buildx-${{ hashFiles(format('{0}/Dockerfile', github.workspace), format('{0}/**/requirements.txt', github.workspace), format('{0}/**/*lock*', github.workspace), format('{0}/**/package-lock.json', github.workspace), format('{0}/**/poetry.lock', github.workspace)) }}
restore-keys: |
${{ runner.os }}-${{ github.repository }}-buildx-
${{ runner.os }}-buildx-
@@ -85,7 +88,7 @@ jobs:
tags: |
cr.yandex/${{ env.CR_REGISTRY }}/${{ env.CR_REPO }}:${{ env.SHORT_SHA }}
cr.yandex/${{ env.CR_REGISTRY }}/${{ env.CR_REPO }}:${{ env.SAFE_TAG }}
platforms: linux/amd64,linux/arm64/v8
platforms: ${{ inputs.arch }}
ssh: default
no-cache: ${{ inputs.force_build }}
build-args: |
@@ -112,7 +115,7 @@ jobs:
uses: actions/cache/save@v4
with:
path: /cache/${{ github.repository }}/buildx-cache
key: ${{ runner.os }}-${{ github.repository }}-buildx-${{ hashFiles('Dockerfile', '**/requirements.txt', '**/*lock*', '**/package-lock.json', '**/poetry.lock') }}
key: ${{ runner.os }}-${{ github.repository }}-buildx-${{ hashFiles(format('{0}/Dockerfile', github.workspace), format('{0}/**/requirements.txt', github.workspace), format('{0}/**/*lock*', github.workspace), format('{0}/**/package-lock.json', github.workspace), format('{0}/**/poetry.lock', github.workspace)) }}
- name: Notify (result)
if: always()

View File

@@ -24,7 +24,7 @@ on:
jobs:
deploy:
if: contains(format(',{0},', vars.ADMIN_USERS), format(',{0},', github.actor)) || inputs.environment=='stage'
if: ${{ contains(format(',{0},', vars.ADMIN_USERS), format(',{0},', github.actor)) || startsWith(inputs.environment, 'stage') }}
runs-on: ubuntu-latest
env:
CR_REGISTRY: crp8vh46gd976oq8ipla