Add github action
This commit is contained in:
parent
9ea837e1e8
commit
e58a9d2f9b
1 changed files with 14 additions and 0 deletions
14
.github/workflows/deploy.yml
vendored
Normal file
14
.github/workflows/deploy.yml
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
- name: Login to Yandex Cloud Container Registry
|
||||
id: login-cr
|
||||
uses: yc-actions/yc-cr-login@v2
|
||||
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