Skip to content

Fix: docs/deps/cli #129

Fix: docs/deps/cli

Fix: docs/deps/cli #129

Workflow file for this run

name: Build Template Web
on:
pull_request:
branches:
- main
paths:
- template/apps/web/**
- template/packages/**
workflow_dispatch:
permissions:
contents: read
jobs:
build:
name: Build Web Docker Image
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Cache Docker layers
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Build Docker image
uses: docker/build-push-action@v5
with:
context: ./template
file: ./template/apps/web/Dockerfile
push: false
tags: ship-web:${{ github.sha }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
build-args: |
APP_ENV=production
- name: Output summary
run: echo "Docker image for Web built successfully!"