Skip to content

refactor: move tailwind config to ts #132

refactor: move tailwind config to ts

refactor: move tailwind config to ts #132

Workflow file for this run

name: Build and deploy Docker image
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- main
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build-deploy:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
VITE_APP_API_BASE_URL=https://mmp.acdh-dev.oeaw.ac.at
VITE_APP_BASE_URL=https://mmp-frontend.acdh-dev.oeaw.ac.at
VITE_APP_MATOMO_BASE_URL=https://matomo.acdh.oeaw.ac.at/
VITE_APP_MATOMO_ID=229
VITE_APP_REDMINE_ID=21191
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Deploy to cluster
uses: acdh-oeaw/deploy-action@v1
with:
token: ${{ secrets.RANCHER_API_TOKEN }}
project: c-m-6hwgqq2g:p-4g86n
deployment: mmp:mmp-frontend