From 28c60a64e52a29fb082e180b2ff7bd723f02a6ae Mon Sep 17 00:00:00 2001 From: Francesco Timperi Tiberi Date: Mon, 9 Dec 2024 21:21:33 +0100 Subject: [PATCH] chore: install task in ci/cd --- .github/cisetup.sh | 19 +++++++++++++++++++ .github/workflows/image.yml | 2 ++ 2 files changed, 21 insertions(+) create mode 100644 .github/cisetup.sh diff --git a/.github/cisetup.sh b/.github/cisetup.sh new file mode 100644 index 0000000..2e6d975 --- /dev/null +++ b/.github/cisetup.sh @@ -0,0 +1,19 @@ +#!/bin/bash +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +sudo sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin \ No newline at end of file diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml index 0c60981..e82aceb 100644 --- a/.github/workflows/image.yml +++ b/.github/workflows/image.yml @@ -60,6 +60,8 @@ jobs: if: ${{ github.event_name != 'pull_request' }} run: | echo "IMG_TAG=$(git describe --tags --abbrev=0)" >> "$GITHUB_ENV" + - name: Setup + run: bash .github/cisetup.sh - name: Set up QEMU uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx