Minor visual tweaks #329
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and push Sakura image | |
on: | |
push: | |
branches: | |
- 'master' | |
jobs: | |
build-push-sakura: | |
container: | |
image: ghcr.io/lolibrary/builder | |
credentials: | |
username: ${{ github.actor }} | |
password: ${{ secrets.PAT }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout build tools | |
uses: actions/checkout@v2 | |
with: | |
repository: lolibrary/build | |
token: ${{ secrets.PAT }} | |
- name: Checkout Sakura | |
uses: actions/checkout@v2 | |
with: | |
path: cache | |
- name: GHCR login | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ github.actor }} | |
password: ${{ secrets.PAT }} | |
registry: ghcr.io | |
- name: Install PHP dependencies | |
run: | | |
composer config http-basic.nova.laravel.com ${{ secrets.NOVA_USERNAME }} ${{ secrets.NOVA_API_KEY }} --no-interaction --working-dir cache | |
COMPOSER_MEMORY_LIMIT=-1 composer install --no-interaction --working-dir cache | |
- name: Install JS dependencies | |
run: npm install --prefix cache | |
- name: Build App | |
run: npm run production --prefix cache | |
- name: Docker Build & Push | |
run: | | |
docker build -t $DOCKER_SHA_TAG . | |
docker push $DOCKER_SHA_TAG | |
env: | |
DOCKER_SHA_TAG: "ghcr.io/lolibrary/sakura:${{ github.sha }}" | |
PROJECT_ID: ${{ secrets.GCLOUD_PROJECT_ID }} | |