Skip to content

patch wp2static maybe #26

patch wp2static maybe

patch wp2static maybe #26

name: Build base NGINX Unit Docker image
on:
- push
- pull_request
jobs:
deploy:
runs-on: ubuntu-latest
if: github.repository == 'hacklabto/web-infra'
steps:
- uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v3
- run: echo "BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
- uses: docker/build-push-action@v2
with:
# https://github.com/docker/build-push-action/issues/378
context: docker/unit-base/
file: docker/unit-base/Dockerfile
push: true
tags: |
ghcr.io/hacklabto/unit-base:${{ github.sha }}
cache-from: type=registry,ref=ghcr.io/hacklabto/unit-base:${{ env.BRANCH_NAME }}
cache-to: type=inline