mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-01-04 06:01:59 +08:00
Format YAML
This commit is contained in:
parent
d44d5b0f62
commit
a6c9e1103c
5 changed files with 12 additions and 15 deletions
2
.github/uffizzi/docker-compose.uffizzi.yml
vendored
2
.github/uffizzi/docker-compose.uffizzi.yml
vendored
|
@ -15,4 +15,4 @@ services:
|
|||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 2000M
|
||||
memory: 2000M
|
||||
|
|
18
.github/workflows/uffizzi-build.yml
vendored
18
.github/workflows/uffizzi-build.yml
vendored
|
@ -1,10 +1,9 @@
|
|||
name: Preview (build)
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened,synchronize,reopened,closed]
|
||||
types: [opened, synchronize, reopened, closed]
|
||||
|
||||
jobs:
|
||||
|
||||
build-application:
|
||||
name: Build PR image
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -15,7 +14,7 @@ jobs:
|
|||
- name: Checkout git repo
|
||||
uses: actions/checkout@v3
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
uses: docker/setup-buildx-action@v2
|
||||
- name: Generate UUID image name
|
||||
id: uuid
|
||||
run: echo "UUID_TAG_APP=$(uuidgen)" >> $GITHUB_ENV
|
||||
|
@ -34,14 +33,13 @@ jobs:
|
|||
labels: ${{ steps.meta.outputs.labels }}
|
||||
file: ./Dockerfile
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
|
||||
cache-to: type=gha,mode=max
|
||||
|
||||
render-compose-file:
|
||||
name: Render Docker Compose file
|
||||
# Pass output of this workflow to another triggered by `workflow_run` event.
|
||||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
needs:
|
||||
- build-application
|
||||
steps:
|
||||
- name: Checkout git repo
|
||||
|
@ -60,10 +58,10 @@ jobs:
|
|||
path: docker-compose.rendered.yml
|
||||
retention-days: 2
|
||||
- name: Serialize PR Event to File
|
||||
run: |
|
||||
run: |
|
||||
cat << EOF > event.json
|
||||
${{ toJSON(github.event) }}
|
||||
|
||||
${{ toJSON(github.event) }}
|
||||
|
||||
EOF
|
||||
- name: Upload PR Event as Artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
|
@ -85,4 +83,4 @@ jobs:
|
|||
with:
|
||||
name: preview-spec
|
||||
path: event.json
|
||||
retention-days: 2
|
||||
retention-days: 2
|
||||
|
|
7
.github/workflows/uffizzi-preview.yml
vendored
7
.github/workflows/uffizzi-preview.yml
vendored
|
@ -7,7 +7,6 @@ on:
|
|||
types:
|
||||
- completed
|
||||
|
||||
|
||||
jobs:
|
||||
cache-compose-file:
|
||||
name: Cache Docker Compose file
|
||||
|
@ -16,7 +15,7 @@ jobs:
|
|||
compose-file-cache-key: ${{ env.COMPOSE_FILE_HASH }}
|
||||
pr-number: ${{ env.PR_NUMBER }}
|
||||
steps:
|
||||
- name: 'Download artifacts'
|
||||
- name: "Download artifacts"
|
||||
# Fetch output (zip archive) from the workflow run that triggered this workflow.
|
||||
uses: actions/github-script@v6
|
||||
with:
|
||||
|
@ -37,7 +36,7 @@ jobs:
|
|||
});
|
||||
let fs = require('fs');
|
||||
fs.writeFileSync(`${process.env.GITHUB_WORKSPACE}/preview-spec.zip`, Buffer.from(download.data));
|
||||
- name: 'Unzip artifact'
|
||||
- name: "Unzip artifact"
|
||||
run: unzip preview-spec.zip
|
||||
- name: Read Event into ENV
|
||||
run: |
|
||||
|
@ -81,4 +80,4 @@ jobs:
|
|||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
id-token: write
|
||||
id-token: write
|
||||
|
|
Loading…
Reference in a new issue