Fetch source tarball directly in Forgejo workflow
Some checks failed
build-local-image / build (push) Failing after 1s
Some checks failed
build-local-image / build (push) Failing after 1s
This commit is contained in:
parent
0299e99fb9
commit
fdefd2497a
1 changed files with 7 additions and 2 deletions
|
|
@ -10,10 +10,15 @@ jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: nix-host
|
runs-on: nix-host
|
||||||
steps:
|
steps:
|
||||||
|
- name: Fetch repository archive
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
curl -fsSL "https://git.centraworks.net/api/v1/repos/centra/lightscale-admin/archive/${GITHUB_SHA}.tar.gz?rev=${GITHUB_SHA}" \
|
||||||
|
| tar -xz --strip-components=1
|
||||||
|
|
||||||
- name: Validate workspace
|
- name: Validate workspace
|
||||||
run: |
|
run: |
|
||||||
pwd
|
set -euo pipefail
|
||||||
ls -la
|
|
||||||
test -f Dockerfile
|
test -f Dockerfile
|
||||||
|
|
||||||
- name: Build local image on runner host
|
- name: Build local image on runner host
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue