Overleaf Development Image #28
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: Overleaf Development Image | |
on: | |
workflow_dispatch: | |
env: | |
GHCR_REGISTRY: ghcr.io | |
jobs: | |
build-image: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
image-name: | |
[ | |
web, | |
webpack, | |
real-time, | |
project-history, | |
notifications, | |
history-v1, | |
filestore, | |
document-updater, | |
docstore, | |
contacts, | |
chat, | |
clsi, | |
spelling, | |
references | |
] | |
steps: | |
- name: "Checkout Internal Overleaf Action" | |
uses: actions/checkout@main | |
with: | |
repository: ayaka-notes/overleaf-internal | |
ref: dev | |
token: ${{secrets.ORGTOKEN}} | |
- name: "Login to GitHub Container Registry" | |
uses: docker/[email protected] | |
with: | |
registry: ${{env.GHCR_REGISTRY}} | |
username: ${{github.actor}} | |
password: ${{secrets.GITHUB_TOKEN}} | |
- name: "Clone Overleaf And Build" | |
run: | | |
cd ./overleaf/develop-pro/ | |
bin/build ${{matrix.image-name}} | |
bin/push ${{matrix.image-name}} | |
clean-image: | |
runs-on: ubuntu-latest | |
needs: build-image | |
steps: | |
- name: Delete 'untaged' containers | |
uses: snok/container-retention-policy@v2 | |
with: | |
image-names: overleaf/dev/* | |
cut-off: 1 min ago UTC | |
account-type: org | |
org-name: ayaka-notes | |
untagged-only: true | |
token: ${{ secrets.ORGTOKEN }} |