From 916f6aa1eeabddcfe7068012c827d52b52a0cc66 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 | 50 ++++++++++++++++++++++++++++++++++ .github/workflows/Pipeline.yml | 20 ++------------ 2 files changed, 52 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..87058358e --- /dev/null +++ b/.github/workflows/Image.yml @@ -0,0 +1,50 @@ +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 - <