Skip to content

Commit

Permalink
Merge pull request #170 from devops-infra/feature/docker-descr
Browse files Browse the repository at this point in the history
Add description in Docker Hub
  • Loading branch information
ChristophShyper authored Feb 12, 2025
2 parents ff118b4 + d4a443d commit fa3c82b
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 14 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/PUSH-MASTER.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,12 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TERM: xterm-256color
run: make push

- name: Docker Hub Description
uses: peter-evans/[email protected]
with:
username: ${{ vars.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
repository: ${{ vars.DOCKER_ORG_NAME }}/${{ github.event.repository.name }}
short-description: ${{ github.event.repository.description }}
image-extensions: png
14 changes: 7 additions & 7 deletions .github/workflows/PUSH-OTHER.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:

pull_request:
name: Create Pull Request
runs-on: ubuntu-24.04
runs-on: ubuntu-24.04-arm
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -83,7 +83,7 @@ jobs:
- name: PR - bugfix (conditional)
if: startsWith(github.ref, 'refs/heads/bug')
uses: devops-infra/action-pull-request@v0.5.5
uses: devops-infra/action-pull-request@v0.6.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
assignee: ${{ github.actor }}
Expand All @@ -93,7 +93,7 @@ jobs:

- name: PR - dependency (conditional)
if: "startsWith(github.ref, 'refs/heads/dep') && !startsWith(github.ref, 'refs/heads/dependabot')"
uses: devops-infra/action-pull-request@v0.5.5
uses: devops-infra/action-pull-request@v0.6.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
assignee: ${{ github.actor }}
Expand All @@ -103,7 +103,7 @@ jobs:

- name: PR - documentation (conditional)
if: startsWith(github.ref, 'refs/heads/doc')
uses: devops-infra/action-pull-request@v0.5.5
uses: devops-infra/action-pull-request@v0.6.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
assignee: ${{ github.actor }}
Expand All @@ -113,7 +113,7 @@ jobs:

- name: PR - feature (conditional)
if: startsWith(github.ref, 'refs/heads/feat')
uses: devops-infra/action-pull-request@v0.5.5
uses: devops-infra/action-pull-request@v0.6.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
assignee: ${{ github.actor }}
Expand All @@ -123,7 +123,7 @@ jobs:

- name: PR - test (conditional)
if: startsWith(github.ref, 'refs/heads/test')
uses: devops-infra/action-pull-request@v0.5.5
uses: devops-infra/action-pull-request@v0.6.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
assignee: ${{ github.actor }}
Expand All @@ -135,7 +135,7 @@ jobs:

- name: PR - test (conditional)
if: "!startsWith(github.ref, 'refs/heads/bug') && !startsWith(github.ref, 'refs/heads/dep') && !startsWith(github.ref, 'refs/heads/doc') && !startsWith(github.ref, 'refs/heads/feat') && !startsWith(github.ref, 'refs/heads/test')"
uses: devops-infra/action-pull-request@v0.5.5
uses: devops-infra/action-pull-request@v0.6.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
assignee: ${{ github.actor }}
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ VERSION_PREFIX ?=
# Other variables and constants
CURRENT_BRANCH := $(shell echo $(GITHUB_REF) | sed 's/refs\/heads\///')
GITHUB_SHORT_SHA := $(shell echo $(GITHUB_SHA) | cut -c1-7)
DOCKER_USER_ID := christophshyper
DOCKER_USERNAME := christophshyper
DOCKER_ORG_NAME := devopsinfra
DOCKER_IMAGE := action-pull-request
DOCKER_NAME := $(DOCKER_ORG_NAME)/$(DOCKER_IMAGE)
GITHUB_USER_ID := ChristophShyper
GITHUB_USERNAME := ChristophShyper
GITHUB_ORG_NAME := devops-infra
GITHUB_NAME := ghcr.io/$(GITHUB_ORG_NAME)/$(DOCKER_IMAGE)
BUILD_DATE := $(shell date -u +"%Y-%m-%dT%H:%M:%SZ")
Expand Down Expand Up @@ -71,9 +71,9 @@ build: ## Build Docker images
.PHONY: login
login: ## Log into all registries
@echo -e "\n$(TXT_GREEN)Logging to: $(TXT_YELLOW)Docker Hub$(TXT_RESET)"
@echo $(DOCKER_TOKEN) | docker login -u $(DOCKER_USER_ID) --password-stdin
@echo $(DOCKER_TOKEN) | docker login -u $(DOCKER_USERNAME) --password-stdin
@echo -e "\n$(TXT_GREEN)Logging to: $(TXT_YELLOW)GitHub Packages$(TXT_RESET)"
@echo $(GITHUB_TOKEN) | docker login ghcr.io -u $(GITHUB_USER_ID) --password-stdin
@echo $(GITHUB_TOKEN) | docker login ghcr.io -u $(GITHUB_USERNAME) --password-stdin


.PHONY: push
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# GitHub Action for creating Pull Requests

## GitHub Action that will create a pull request from the current branch.
# GitHub Action for creating Pull Requests in a repository

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

Expand Down

0 comments on commit fa3c82b

Please sign in to comment.