Skip to content

Workflow file for this run

name: Build Docker Image
on: [push]
defaults:
run:
working-directory: build
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build-backend:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: build
- name: Cache Composer dependencies
uses: actions/cache@v2
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
- name: Build
uses: php-actions/composer@v6
with:
php_version: "8.0"
dev: no
args: --optimize-autoloader
working_dir: build
- name: Package
run: |
sudo cp .env.dist .env
sudo rm -rf var/cache/*
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: backend
path: build