Compare commits
12 Commits
31eccd5c09
...
new_notify
| Author | SHA1 | Date | |
|---|---|---|---|
| f0f354a8d4 | |||
| 8864f9585e | |||
| b7fb2ed335 | |||
| 760b6a8257 | |||
| d7bae2b72f | |||
| 2e4141834e | |||
| 4576ab5751 | |||
| 5114bcf9fe | |||
| a6877dda7e | |||
| 6d04254346 | |||
| 50c5bc458a | |||
| a0f83b72d1 |
9
.github/workflows/build.yaml
vendored
9
.github/workflows/build.yaml
vendored
@@ -11,6 +11,9 @@ on:
|
|||||||
force_build:
|
force_build:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
arch:
|
||||||
|
type: string
|
||||||
|
default: "linux/amd64,linux/arm64/v8"
|
||||||
secrets:
|
secrets:
|
||||||
VK_TEAMS_BOT_TOKEN:
|
VK_TEAMS_BOT_TOKEN:
|
||||||
required: true
|
required: true
|
||||||
@@ -70,7 +73,7 @@ jobs:
|
|||||||
uses: actions/cache/restore@v4
|
uses: actions/cache/restore@v4
|
||||||
with:
|
with:
|
||||||
path: /cache/${{ github.repository }}/buildx-cache
|
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: |
|
restore-keys: |
|
||||||
${{ runner.os }}-${{ github.repository }}-buildx-
|
${{ runner.os }}-${{ github.repository }}-buildx-
|
||||||
${{ runner.os }}-buildx-
|
${{ runner.os }}-buildx-
|
||||||
@@ -85,7 +88,7 @@ jobs:
|
|||||||
tags: |
|
tags: |
|
||||||
cr.yandex/${{ env.CR_REGISTRY }}/${{ env.CR_REPO }}:${{ env.SHORT_SHA }}
|
cr.yandex/${{ env.CR_REGISTRY }}/${{ env.CR_REPO }}:${{ env.SHORT_SHA }}
|
||||||
cr.yandex/${{ env.CR_REGISTRY }}/${{ env.CR_REPO }}:${{ env.SAFE_TAG }}
|
cr.yandex/${{ env.CR_REGISTRY }}/${{ env.CR_REPO }}:${{ env.SAFE_TAG }}
|
||||||
platforms: linux/amd64,linux/arm64/v8
|
platforms: ${{ inputs.arch }}
|
||||||
ssh: default
|
ssh: default
|
||||||
no-cache: ${{ inputs.force_build }}
|
no-cache: ${{ inputs.force_build }}
|
||||||
build-args: |
|
build-args: |
|
||||||
@@ -112,7 +115,7 @@ jobs:
|
|||||||
uses: actions/cache/save@v4
|
uses: actions/cache/save@v4
|
||||||
with:
|
with:
|
||||||
path: /cache/${{ github.repository }}/buildx-cache
|
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)
|
- name: Notify (result)
|
||||||
if: always()
|
if: always()
|
||||||
|
|||||||
2
.github/workflows/deployk8s.yaml
vendored
2
.github/workflows/deployk8s.yaml
vendored
@@ -24,7 +24,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
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
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
CR_REGISTRY: crp8vh46gd976oq8ipla
|
CR_REGISTRY: crp8vh46gd976oq8ipla
|
||||||
|
|||||||
Reference in New Issue
Block a user