Skip to content

Commit 2fc8ec4

Browse files
Merge pull request #127 from devops-infra/feature/docker-descr
Add Action for description in Docker Hub
2 parents 5325c6e + 627776f commit 2fc8ec4

File tree

4 files changed

+17
-8
lines changed

4 files changed

+17
-8
lines changed

.github/workflows/CRON.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,3 @@ jobs:
3131
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3232
TERM: xterm-256color
3333
run: make push VERSION_PREFIX=test-
34-

.github/workflows/PUSH-MASTER.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
name: Repo labels
1111
runs-on: ubuntu-24.04-arm
1212
steps:
13-
- name: Checkout repository
13+
- name: Checkout
1414
uses: actions/checkout@v4
1515

1616
- name: Labels' config
@@ -63,3 +63,11 @@ jobs:
6363
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6464
TERM: xterm-256color
6565
run: make push
66+
67+
- name: Docker Hub Description
68+
uses: peter-evans/dockerhub-description@v4
69+
with:
70+
username: ${{ vars.DOCKERHUB_USERNAME }}
71+
password: ${{ secrets.DOCKERHUB_TOKEN }}
72+
repository: ${{ vars.DOCKER_ORG_NAME }}/${{ github.event.repository.name }}
73+
short-description: ${{ github.event.repository.description }}

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ VERSION_PREFIX ?=
1313
CURRENT_BRANCH := $(shell echo $(GITHUB_REF) | sed 's/refs\/heads\///')
1414
GITHUB_SHORT_SHA := $(shell echo $(GITHUB_SHA) | cut -c1-7)
1515
RELEASE_BRANCH := master
16-
DOCKER_USER_ID := christophshyper
16+
DOCKER_USERNAME := christophshyper
1717
DOCKER_ORG_NAME := devopsinfra
1818
DOCKER_IMAGE := action-commit-push
1919
DOCKER_NAME := $(DOCKER_ORG_NAME)/$(DOCKER_IMAGE)
20-
GITHUB_USER_ID := ChristophShyper
20+
GITHUB_USERNAME := ChristophShyper
2121
GITHUB_ORG_NAME := devops-infra
2222
GITHUB_NAME := ghcr.io/$(GITHUB_ORG_NAME)/$(DOCKER_IMAGE)
2323
BUILD_DATE := $(shell date -u +"%Y-%m-%dT%H:%M:%SZ")
@@ -72,9 +72,9 @@ build: ## Build Docker images
7272
.PHONY: login
7373
login: ## Log into all registries
7474
@echo -e "\n$(TXT_GREEN)Logging to: $(TXT_YELLOW)Docker Hub$(TXT_RESET)"
75-
@echo $(DOCKER_TOKEN) | docker login -u $(DOCKER_USER_ID) --password-stdin
75+
@echo $(DOCKER_TOKEN) | docker login -u $(DOCKER_USERNAME) --password-stdin
7676
@echo -e "\n$(TXT_GREEN)Logging to: $(TXT_YELLOW)GitHub Packages$(TXT_RESET)"
77-
@echo $(GITHUB_TOKEN) | docker login ghcr.io -u $(GITHUB_USER_ID) --password-stdin
77+
@echo $(GITHUB_TOKEN) | docker login ghcr.io -u $(GITHUB_USERNAME) --password-stdin
7878

7979

8080
.PHONY: push

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44

55
### Supporting `amd64` and `aarch64/arm64` images!
66

7-
Available in Docker Hub: [devopsinfra/action-commit-push:latest](https://hub.docker.com/repository/docker/devopsinfra/action-commit-push)
7+
Useful in combination with my other action [devops-infra/action-pull-request](https://github.com/devops-infra/action-pull-request).
88

9-
And GitHub Packages: [ghcr.io/devops-infra/docker-terragrunt/docker-terragrunt:latest](https://github.com/orgs/devops-infra/packages/container/package/action-commit-push)
9+
Available in Docker Hub: [devopsinfra/action-commit-push:latest](https://hub.docker.com/repository/docker/devopsinfra/action-commit-push)
10+
<br>
11+
And GitHub Packages: [ghcr.io/devops-infra/action-commit-push/action-commit-push:latest](https://github.com/orgs/devops-infra/packages/container/package/action-commit-push)
1012

1113

1214
Features:

0 commit comments

Comments
 (0)