Skip to content

add frontend miniconf 2024 #82

add frontend miniconf 2024

add frontend miniconf 2024 #82

Workflow file for this run

name: Main
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: .node-version
cache: 'npm'
- run: npm ci
- run: npm run lint
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Generate image meta
id: meta
uses: docker/metadata-action@v5
with:
images: cr.yandex/crp7fcdv4506tqnqd64o/portal
tags: |
type=ref,event=branch,suffix=-{{sha}}
type=ref,event=branch,suffix=-latest
type=ref,event=pr,suffix=-{{sha}}
type=ref,event=pr,suffix=-latest
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Container Registry
uses: docker/login-action@v3
with:
registry: cr.yandex
username: json_key
password: ${{ secrets.CONTAINER_REGISTRY_KEY }}
- name: Build
uses: docker/build-push-action@v5
with:
provenance: false
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
secrets: |
"SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}"
"S3_ACCESS_KEY_ID=${{ secrets.S3_ACCESS_KEY_ID }}"
"S3_SECRET_ACCESS_KEY=${{ secrets.S3_SECRET_ACCESS_KEY }}"