Fix github actions
This commit is contained in:
parent
e58a9d2f9b
commit
7a113f4c6d
1 changed files with 26 additions and 13 deletions
39
.github/workflows/deploy.yml
vendored
39
.github/workflows/deploy.yml
vendored
|
|
@ -1,14 +1,27 @@
|
||||||
- name: Login to Yandex Cloud Container Registry
|
name: Push To Yandex Cloud CR
|
||||||
id: login-cr
|
on:
|
||||||
uses: yc-actions/yc-cr-login@v2
|
push:
|
||||||
with:
|
branches:
|
||||||
yc-sa-json-credentials: ${{ secrets.YC_SA_JSON_CREDENTIALS }}
|
- 'master'
|
||||||
|
|
||||||
- name: Build, tag, and push image to Yandex Cloud Container Registry
|
jobs:
|
||||||
env:
|
build:
|
||||||
CR_REGISTRY: crp1s2dst54hvi8588to
|
runs-on: ubuntu-latest
|
||||||
CR_REPOSITORY: mtg-price-bot
|
|
||||||
IMAGE_TAG: latest
|
steps:
|
||||||
run: |
|
- uses: actions/checkout@v2
|
||||||
docker build -t cr.yandex/$CR_REGISTRY/$CR_REPOSITORY:$IMAGE_TAG .
|
|
||||||
docker push cr.yandex/$CR_REGISTRY/$CR_REPOSITORY:$IMAGE_TAG
|
- name: Login to Yandex Cloud Container Registry
|
||||||
|
id: login-cr
|
||||||
|
uses: yc-actions/yc-cr-login@v1
|
||||||
|
with:
|
||||||
|
yc-sa-json-credentials: ${{ secrets.YC_SA_JSON_CREDENTIALS }}
|
||||||
|
|
||||||
|
- name: Build, tag, and push image to Yandex Cloud Container Registry
|
||||||
|
env:
|
||||||
|
CR_REGISTRY: crp1s2dst54hvi8588to
|
||||||
|
CR_REPOSITORY: mtg-price-bot
|
||||||
|
IMAGE_TAG: latest
|
||||||
|
run: |
|
||||||
|
docker build -t cr.yandex/$CR_REGISTRY/$CR_REPOSITORY:$IMAGE_TAG .
|
||||||
|
docker push cr.yandex/$CR_REGISTRY/$CR_REPOSITORY:$IMAGE_TAG
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue