From a8272334850ce754c905cdf495f1357eaae90fe4 Mon Sep 17 00:00:00 2001 From: pseusys Date: Sat, 11 Feb 2023 13:26:37 +0100 Subject: [PATCH] image source changed to dockerhub --- .github/workflows/build_image.yml | 9 +++------ Makefile | 5 +++-- action.yml | 2 +- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build_image.yml b/.github/workflows/build_image.yml index 68fba14..df8d576 100644 --- a/.github/workflows/build_image.yml +++ b/.github/workflows/build_image.yml @@ -7,9 +7,6 @@ jobs: publish-server-image: name: Publish 'waka-readme-stats' image runs-on: ubuntu-latest - permissions: - contents: read - packages: write steps: - name: Checkout 🛎️ @@ -19,14 +16,14 @@ jobs: uses: docker/login-action@v2 with: registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Extract metadata (tags, labels) for Docker 🏋️ id: meta uses: docker/metadata-action@v4 with: - images: ghcr.io/${{ github.repository }} + images: waka-readme-stats tags: | type=ref,event=branch type=ref,event=pr diff --git a/Makefile b/Makefile index 1c547c9..d8d9723 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ help: @echo "The action can be tested locally with: 'make run'." @echo "NB! For local testing Python version 3.6+ and NodeJS version between 14 and 16 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 "NB! For local container building Docker version 20+ is required." @echo "The action directory and image can be cleaned with: 'make clean'." .PHONY: help @@ -40,5 +40,6 @@ clean: rm -rf venv rm -rf node_modules rm -r package*.json - docker rmi -f waka-readme-stats 2>/dev/null + docker rmi -f waka-readme-stats 2>/dev/null || true + docker rmi $(docker images | grep "waka-readme-stats") 2> /dev/null || true .PHONY: clean diff --git a/action.yml b/action.yml index 0843373..d0851ef 100644 --- a/action.yml +++ b/action.yml @@ -134,7 +134,7 @@ inputs: runs: using: 'docker' - image: 'ghcr.io/anmol098/waka-readme-stats:master' + image: 'waka-readme-stats:master' branding: icon: 'activity'