Fix github actions

This commit is contained in:
Artyom Belousov 2023-05-28 17:38:33 +03:00
parent e58a9d2f9b
commit 7a113f4c6d

View file

@ -1,10 +1,23 @@
- name: Login to Yandex Cloud Container Registry name: Push To Yandex Cloud CR
on:
push:
branches:
- 'master'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Login to Yandex Cloud Container Registry
id: login-cr id: login-cr
uses: yc-actions/yc-cr-login@v2 uses: yc-actions/yc-cr-login@v1
with: with:
yc-sa-json-credentials: ${{ secrets.YC_SA_JSON_CREDENTIALS }} yc-sa-json-credentials: ${{ secrets.YC_SA_JSON_CREDENTIALS }}
- name: Build, tag, and push image to Yandex Cloud Container Registry - name: Build, tag, and push image to Yandex Cloud Container Registry
env: env:
CR_REGISTRY: crp1s2dst54hvi8588to CR_REGISTRY: crp1s2dst54hvi8588to
CR_REPOSITORY: mtg-price-bot CR_REPOSITORY: mtg-price-bot