From c8c6f60a9538a9ed14125393e8e07873d6cda474 Mon Sep 17 00:00:00 2001 From: Unai Martinez-Corral Date: Sun, 22 May 2022 02:46:03 +0200 Subject: [PATCH] ci: avoid installing dependencies in each job Signed-off-by: Unai Martinez-Corral --- .github/workflows/Image.yml | 51 ++++++++++++++++++++++++++++++++++ .github/workflows/Pipeline.yml | 20 ++----------- 2 files changed, 53 insertions(+), 18 deletions(-) create mode 100644 .github/workflows/Image.yml diff --git a/.github/workflows/Image.yml b/.github/workflows/Image.yml new file mode 100644 index 000000000..0821e7e41 --- /dev/null +++ b/.github/workflows/Image.yml @@ -0,0 +1,51 @@ +name: Image + +on: + push: + workflow_dispatch: + schedule: + - cron: '0 0 * * 5' + +jobs: + + BuildAndPush: + runs-on: ubuntu-latest + permissions: + packages: write + env: + IMAGE: ghcr.io/f4pga/prjxray/ci + + steps: + + - name: Build image prjxray/ci + run: | + docker build -t $IMAGE - <