Skip to content

⬆️ Bump tailwindcss from 3.4.11 to 3.4.12 #281

⬆️ Bump tailwindcss from 3.4.11 to 3.4.12

⬆️ Bump tailwindcss from 3.4.11 to 3.4.12 #281

Workflow file for this run

name: Test, build, and deploy to ghcr.io
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on: push
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: yarn
- run: yarn install
- run: yarn tsc
- run: yarn vitest run
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Nginx
run: sudo apt-get update && sudo apt-get install -y nginx
- name: Copy Nginx config to default location
run: sudo cp -r ./_nginx /etc/nginx
- name: Test Nginx configuration
run: sudo nginx -t
build:
if: github.ref == 'refs/heads/main'
needs:
- test
- validate
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: yarn
- run: yarn install
- name: Get build date
run: echo "VITE_BUILD_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ")" >> $GITHUB_ENV
- run: yarn build
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/setup-buildx-action@v3
- uses: docker/build-push-action@v6
with:
push: ${{ github.event_name == 'push' }}
provenance: false
tags: ghcr.io/solectrus/configurator:latest
context: .
cache-from: type=gha
cache-to: type=gha,mode=max
labels: |
org.opencontainers.image.title=${{ github.event.repository.name }}
org.opencontainers.image.description=${{ github.event.repository.description }}
org.opencontainers.image.url=${{ github.event.repository.html_url }}
org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.created=${{ env.VITE_BUILD_DATE }}
deploy:
if: github.ref == 'refs/heads/main'
needs: build
runs-on: ubuntu-latest
steps:
- env:
DEPLOY_HOOK: ${{ secrets.DEPLOY_HOOK }}
if: env.DEPLOY_HOOK != null
run: curl -X POST ${{ secrets.DEPLOY_HOOK }}