Skip to content

drinkice-site

drinkice-site #7

Workflow file for this run

name: drinkice-site
on:
workflow_dispatch:
push:
paths:
- 'site/**'
env:
WORKING_DIRECTORY: './site'
IMAGE_NAME: 'drinkice-site'
jobs:
drinkice-site-build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: ./site
- name: LS
run: ls
working-directory: ${{ env.WORKING_DIRECTORY }}
# - name: Setup Node
# uses: actions/setup-node@v4
# with:
# node-version: "20"
# cache-dependency-path: |
# ./site/
# cache:
# - name: Restore cache
# uses: actions/cache@v4
# with:
# path: |
# .node_modules
# .nuxt
# key: ${{ runner.os }}-nuxt-build-${{ hashFiles('.output') }}
# restore-keys: |
# ${{ runner.os }}-nuxt-build-
# - name: NPM Install
# run: npm install
# - name: NPM Run Build
# run: npm run build
# - name: 'Set up Docker Buildx'
# uses: docker/setup-buildx-action@v2
# - name: 'Login to GitHub Container Registry'
# uses: docker/login-action@v3
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
# - name: 'Build and push docker image'
# uses: docker/build-push-action@v5
# with:
# platforms: |
# linux/amd64
# linux/arm64
# push: true
# tags: |
# ${{ env.IMAGE_NAME }}:latest