diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 787226e..fde4886 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,8 +18,17 @@ jobs: contents: read packages: write steps: + - name: Start Measurement + uses: green-coding-solutions/eco-ci-energy-estimation@v3 # use hash or @vX here (See note below) + with: + task: start-measurement - name: Checkout uses: actions/checkout@v4.1.6 + - name: Checkout Repo Measurement + uses: green-coding-solutions/eco-ci-energy-estimation@v3 # use hash or @vX here (See note below) + with: + task: get-measurement + label: 'repo checkout' - name: Log in to the Container registry uses: docker/login-action@v3.2.0 with: @@ -46,6 +55,18 @@ jobs: labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha cache-to: type=gha,mode=max + - name: Tests measurement + uses: green-coding-solutions/eco-ci-energy-estimation@v3 # use hash or @vX here (See note below) + with: + task: get-measurement + label: 'build and push' + - name: Show Energy Results + uses: green-coding-solutions/eco-ci-energy-estimation@v3 # use hash or @vX here (See note below) + with: + task: display-results + # continue-on-error: true # recommended setting for production. See notes below. + + build-dev: runs-on: ubuntu-latest permissions: @@ -71,6 +92,8 @@ jobs: tags: ghcr.io/mardi4nfdi/docker-wikibase:dev cache-from: type=gha cache-to: type=gha,mode=max + + build-jobrunner: runs-on: ubuntu-latest permissions: @@ -95,7 +118,9 @@ jobs: push: ${{ env.PUSH_IMAGE }} tags: ghcr.io/mardi4nfdi/docker-redis-jobrunner cache-from: type=gha - cache-to: type=gha,mode=max + cache-to: type=gha,mode=max + + build-backup: runs-on: ubuntu-latest permissions: