You've already forked wakapi-readme-stats
actions versions updated; makefile naming, versions and default goal updated
This commit is contained in:
6
.github/workflows/build_image.yml
vendored
6
.github/workflows/build_image.yml
vendored
@@ -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 }}
|
||||
|
||||
8
Makefile
8
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:
|
||||
|
||||
Reference in New Issue
Block a user