Skip to content

Commit

Permalink
Add ghcr support
Browse files Browse the repository at this point in the history
  • Loading branch information
marteinn committed Mar 16, 2023
1 parent 17e0b6b commit 4254d7f
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 10 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/publish_composer-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ jobs:
- composer-php-8.1
steps:
- uses: actions/checkout@v2
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Log in to GitHub Container Registry
env:
GHCR_PERSONAL_TOKEN: ${{ secrets.GHCR_PERSONAL_TOKEN }}
GHCR_USERNAME: ${{ secrets.GHCR_USERNAME }}
run: |
echo $GHCR_PERSONAL_TOKEN | docker login ghcr.io -u $GHCR_USERNAME --password-stdin
- name: build ${{ matrix.docker-image }}
run: make build
Expand Down
2 changes: 1 addition & 1 deletion composer-php-7.0/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
NAME = frojd/composer-php-7.0
NAME = ghcr.io/frojd/dockerimages/composer-php-7.0

build:
docker build -t $(NAME):1.9.3 --rm --build-arg COMPOSER_VERSION=1.9.3 .
Expand Down
2 changes: 1 addition & 1 deletion composer-php-7.2/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
NAME = frojd/composer-php-7.2
NAME = ghcr.io/frojd/dockerimages/composer-php-7.2

build:
docker build -t $(NAME):1.9.3 --rm --build-arg COMPOSER_VERSION=1.9.3 .
Expand Down
2 changes: 1 addition & 1 deletion composer-php-7.4/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
NAME = frojd/composer-php-7.4
NAME = ghcr.io/frojd/dockerimages/composer-php-7.4

build:
docker build -t $(NAME):1.9.3 --rm --build-arg COMPOSER_VERSION=1.9.3 .
Expand Down
2 changes: 1 addition & 1 deletion composer-php-8.0/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
NAME = frojd/composer-php-8.0
NAME = ghcr.io/frojd/dockerimages/composer-php-8.0

build:
docker build -t $(NAME):1.9.3 --rm --build-arg COMPOSER_VERSION=1.9.3 .
Expand Down
2 changes: 1 addition & 1 deletion composer-php-8.1/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
NAME = frojd/composer-php-8.1
NAME = ghcr.io/frojd/dockerimages/composer-php-8.1

build:
docker build -t $(NAME):1.9.3 --rm --build-arg COMPOSER_VERSION=1.9.3 .
Expand Down

0 comments on commit 4254d7f

Please sign in to comment.