|
|
@@ -5,7 +5,7 @@ name: Build & Validate Image |
|
|
|
jobs: |
|
|
|
build: |
|
|
|
name: Build & Validate Image |
|
|
|
runs-on: self-hosted |
|
|
|
runs-on: odin |
|
|
|
timeout-minutes: 2880 |
|
|
|
env: |
|
|
|
working-directory: ./ |
|
|
@@ -14,7 +14,7 @@ jobs: |
|
|
|
uses: actions/checkout@v2 |
|
|
|
- name: Clean docker |
|
|
|
id: clean_docker |
|
|
|
working-directory: ${{ env.working-directory }} |
|
|
|
working-directory: ${{ env.working-directory }} |
|
|
|
run: | |
|
|
|
docker system prune -af |
|
|
|
docker system prune --volumes -f |
|
|
@@ -23,7 +23,7 @@ jobs: |
|
|
|
docker container rm $(docker container ls -aq) || true |
|
|
|
- name: Build project |
|
|
|
id: builder |
|
|
|
working-directory: ${{ env.working-directory }} |
|
|
|
working-directory: ${{ env.working-directory }} |
|
|
|
run: | |
|
|
|
bash build-docker.sh |
|
|
|
echo ::set-output name=filename::$(ls deploy/*.img.xz | xargs -n 1 basename) |
|
|
|