From e58a9d2f9bcf4eb9d348f161a723ea923753d060 Mon Sep 17 00:00:00 2001 From: Artyom Belousov Date: Sun, 28 May 2023 17:31:22 +0300 Subject: [PATCH] Add github action --- .github/workflows/deploy.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..ab0cb6e --- /dev/null +++ b/.github/workflows/deploy.yml @@ -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