-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (31 loc) · 948 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Build Docker Image and Push to Evolution Artifact Registry
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CR_URI: ${{secrets.CR_URI}}
BOT_TOKEN: ${{secrets.BOT_TOKEN}}
HUSKY: 0
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout to the branch
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to Evolution Artifact Registry
uses: docker/login-action@v1
with:
registry: ${{ env.CR_URI }}
username: ${{ secrets.EVO_CR_LOGIN }}
password: ${{ secrets.EVO_CR_PWD }}
- name: NodeJS - Build and push docker image to Evolution Aritfact Registry
uses: docker/build-push-action@v5
with:
push: true
tags: ${{ env.CR_URI }}/dating_clikpik_tg:${{ github.sha }}
file: Dockerfile
context: ./src