From 7f5f14675177cc2c29836841c7b7ea5c8f53d543 Mon Sep 17 00:00:00 2001 From: pseusys Date: Fri, 13 Jan 2023 05:24:11 +0400 Subject: [PATCH] actions versions updated; makefile naming, versions and default goal updated --- .github/workflows/build_image.yml | 6 +++--- Makefile | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build_image.yml b/.github/workflows/build_image.yml index 4945362..a231dcc 100644 --- a/.github/workflows/build_image.yml +++ b/.github/workflows/build_image.yml @@ -16,7 +16,7 @@ jobs: uses: actions/checkout@v3 - name: Log in to the Container registry 🚪 - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: registry: ghcr.io username: ${{ github.actor }} @@ -24,7 +24,7 @@ jobs: - name: Extract metadata (tags, labels) for Docker 🏋️ id: meta - uses: docker/metadata-action@v3 + uses: docker/metadata-action@v4 with: images: ghcr.io/${{ github.repository }} tags: | @@ -34,7 +34,7 @@ jobs: type=semver,pattern={{major}}.{{minor}} - name: Build and push Docker image 🏗️ - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v3 with: push: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/releases') }} tags: ${{ steps.meta.outputs.tags }} diff --git a/Makefile b/Makefile index 58d9fb9..3cfd142 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.DEFAULT_GOAL = run +.DEFAULT_GOAL = help SHELL = /bin/bash PATH := venv/bin:node_modules/.bin:$(PATH) @@ -7,7 +7,7 @@ PATH := venv/bin:node_modules/.bin:$(PATH) help: @echo "Welcome to `waka-readme-stats` github action!" @echo "The action can be tested locally with: `make run`" - @echo "NB! For local testing Python version between ??? and ??? and NodeJS version between ??? and ??? are required" + @echo "NB! For local testing Python version 3.6+ and NodeJS version between ??? and ??? are required" @echo "The action image can be built locally with: `make container`" @echo "NB! For local container building Docker version between ??? and ??? is required" @echo "The action directory and image can be cleaned with: `make clean`" @@ -31,9 +31,9 @@ run: dependencies .PHONY: run -container: +image: docker build -t waka-readme-stats -f Dockerfile . -.PHONY: container +.PHONY: image clean: