Compare commits
1 commit
d00a7b3b80
...
a3bcd33961
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a3bcd33961 |
3 changed files with 5 additions and 17 deletions
|
|
@ -52,16 +52,10 @@ jobs:
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
run: |
|
uses: https://data.forgejo.org/actions/checkout@v4
|
||||||
if [ -d .git ]; then
|
with:
|
||||||
git remote set-url origin git@git.dimensionlab.net:vince/dimensionlab-website.git
|
fetch-depth: 0
|
||||||
else
|
submodules: false
|
||||||
git init
|
|
||||||
git remote add origin git@git.dimensionlab.net:vince/dimensionlab-website.git
|
|
||||||
fi
|
|
||||||
git fetch --force --prune --depth=1 origin "$GITHUB_SHA"
|
|
||||||
git checkout --force --detach "$GITHUB_SHA"
|
|
||||||
git clean -ffdx
|
|
||||||
|
|
||||||
- name: Initialize submodules
|
- name: Initialize submodules
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
|
|
@ -171,9 +171,7 @@ for `push` events on `refs/heads/main`.
|
||||||
The workflow uses two runner classes. Pull request CI runs on the containerized
|
The workflow uses two runner classes. Pull request CI runs on the containerized
|
||||||
`docker` runner. Production deployment runs on a separate host runner with the
|
`docker` runner. Production deployment runs on a separate host runner with the
|
||||||
`deploy:host` label so the guarded deploy script can use the user's rootless
|
`deploy:host` label so the guarded deploy script can use the user's rootless
|
||||||
`podman` and `systemctl --user` commands directly. The deploy job uses a
|
`podman` and `systemctl --user` commands directly.
|
||||||
shell-only `git fetch` checkout so the host runner does not need a Node runtime
|
|
||||||
for checkout actions.
|
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
runner:
|
runner:
|
||||||
|
|
|
||||||
|
|
@ -278,10 +278,6 @@ describe("workspace boundaries", () => {
|
||||||
expect(workflow).toContain("runs-on: deploy");
|
expect(workflow).toContain("runs-on: deploy");
|
||||||
expect(workflow).toContain("github.event_name == 'push'");
|
expect(workflow).toContain("github.event_name == 'push'");
|
||||||
expect(workflow).toContain("github.ref == 'refs/heads/main'");
|
expect(workflow).toContain("github.ref == 'refs/heads/main'");
|
||||||
expect(workflow).toContain(
|
|
||||||
"git remote add origin git@git.dimensionlab.net:vince/dimensionlab-website.git",
|
|
||||||
);
|
|
||||||
expect(workflow).toContain('git fetch --force --prune --depth=1 origin "$GITHUB_SHA"');
|
|
||||||
expect(workflow).toContain("podman inspect dimensionlab-website");
|
expect(workflow).toContain("podman inspect dimensionlab-website");
|
||||||
expect(workflow).toContain("DEPLOY_CONTAINER_CLI: podman");
|
expect(workflow).toContain("DEPLOY_CONTAINER_CLI: podman");
|
||||||
expect(workflow).toContain("PODMAN_SYSTEMD_UNIT");
|
expect(workflow).toContain("PODMAN_SYSTEMD_UNIT");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue