Skip to content

Commit

Permalink
migrate to ghcr
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaud-ritti committed Dec 2, 2024
1 parent a8a43a1 commit e853a92
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 25 deletions.
34 changes: 19 additions & 15 deletions .github/workflows/build_php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,17 @@ on:
required: false
type: string
registry:
default: "adeliom"
default: "ghcr.io/agence-adeliom"
required: true
type: string
outputs:
repository:
value: ${{ jobs.base-images.repository.outputs.REPOSITORY }}

permissions:
contents: read
packages: write

jobs:
frankenphp:
runs-on: ubuntu-latest
Expand All @@ -43,8 +47,8 @@ jobs:
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set image tag
run: echo "IMAGE_TAG=${{ inputs.registry }}/${{ inputs.image }}:${{ matrix.version }}-${{ matrix.variant }}" >> $GITHUB_OUTPUT
id: image_tag
Expand Down Expand Up @@ -109,8 +113,8 @@ jobs:
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set image tag
run: echo "IMAGE_TAG=${{ inputs.registry }}/${{ inputs.image }}:${{ matrix.version }}-${{ matrix.variant }}" >> $GITHUB_OUTPUT
id: image_tag
Expand Down Expand Up @@ -175,8 +179,8 @@ jobs:
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set image tag
run: echo "IMAGE_TAG=${{ inputs.registry }}/${{ inputs.image }}:${{ matrix.version }}-${{ matrix.variant }}" >> $GITHUB_OUTPUT
id: image_tag
Expand Down Expand Up @@ -242,8 +246,8 @@ jobs:
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set image tag
run: echo "IMAGE_TAG=${{ inputs.registry }}/${{ inputs.image }}:${{ matrix.version }}-${{ matrix.variant }}" >> $GITHUB_OUTPUT
id: image_tag
Expand Down Expand Up @@ -310,8 +314,8 @@ jobs:
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set image tag
run: echo "IMAGE_TAG=${{ inputs.registry }}/${{ inputs.image }}:${{ matrix.version }}-${{ matrix.variant }}" >> $GITHUB_OUTPUT
id: image_tag
Expand Down Expand Up @@ -378,8 +382,8 @@ jobs:
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set image tag
run: echo "IMAGE_TAG=${{ inputs.registry }}/${{ inputs.image }}:${{ matrix.version }}-${{ matrix.variant }}" >> $GITHUB_OUTPUT
id: image_tag
Expand Down Expand Up @@ -446,8 +450,8 @@ jobs:
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set image tag
run: echo "IMAGE_TAG=${{ inputs.registry }}/${{ inputs.image }}:${{ matrix.version }}-${{ matrix.variant }}" >> $GITHUB_OUTPUT
id: image_tag
Expand Down
2 changes: 1 addition & 1 deletion php/Dockerfile.apache
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1
ARG PHP_VERSION
FROM adeliom/php:${PHP_VERSION}-fpm
FROM ghcr.io/agence-adeliom/php:${PHP_VERSION}-fpm

# ensure www-data user exists
#RUN set -x \
Expand Down
2 changes: 1 addition & 1 deletion php/Dockerfile.apache-wkhtmltopdf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1
ARG PHP_VERSION
FROM adeliom/php:${PHP_VERSION}-fpm-wkhtmltopdf
FROM ghcr.io/agence-adeliom/php:${PHP_VERSION}-fpm-wkhtmltopdf

# ensure www-data user exists
#RUN set -x \
Expand Down
2 changes: 1 addition & 1 deletion php/Dockerfile.caddy
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ARG PHP_VERSION
ARG CADDY_VERSION="2.8.4"
FROM caddy:${CADDY_VERSION}-alpine AS caddy-builder

FROM adeliom/php:${PHP_VERSION}-fpm
FROM ghcr.io/agence-adeliom/php:${PHP_VERSION}-fpm

RUN set -eux; \
mkdir -p \
Expand Down
2 changes: 1 addition & 1 deletion php/Dockerfile.caddy-wkhtmltopdf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ARG PHP_VERSION
ARG CADDY_VERSION="2.8.4"
FROM caddy:${CADDY_VERSION}-alpine AS caddy-builder

FROM adeliom/php:${PHP_VERSION}-fpm-wkhtmltopdf
FROM ghcr.io/agence-adeliom/php:${PHP_VERSION}-fpm-wkhtmltopdf

RUN set -eux; \
mkdir -p \
Expand Down
2 changes: 1 addition & 1 deletion php/Dockerfile.cli-wkhtmltopdf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1
ARG PHP_VERSION
FROM adeliom/php:${PHP_VERSION}-cli
FROM ghcr.io/agence-adeliom/php:${PHP_VERSION}-cli

RUN apk add --update --no-cache \
libgcc libstdc++ libx11 glib libxrender libxext libintl \
Expand Down
2 changes: 1 addition & 1 deletion php/Dockerfile.fpm-wkhtmltopdf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1
ARG PHP_VERSION
FROM adeliom/php:${PHP_VERSION}-fpm
FROM ghcr.io/agence-adeliom/php:${PHP_VERSION}-fpm

RUN apk add --update --no-cache \
libgcc libstdc++ libx11 glib libxrender libxext libintl \
Expand Down
2 changes: 1 addition & 1 deletion php/Dockerfile.frankenphp-wkhtmltopdf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1
ARG PHP_VERSION
FROM adeliom/php:${PHP_VERSION}-frankenphp
FROM ghcr.io/agence-adeliom/php:${PHP_VERSION}-frankenphp

RUN set -x \
&& apt-get update \
Expand Down
2 changes: 1 addition & 1 deletion php/Dockerfile.nginx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1
ARG PHP_VERSION
FROM adeliom/php:${PHP_VERSION}-fpm
FROM ghcr.io/agence-adeliom/php:${PHP_VERSION}-fpm

RUN apk --update add --no-cache \
supervisor \
Expand Down
2 changes: 1 addition & 1 deletion php/Dockerfile.nginx-wkhtmltopdf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1
ARG PHP_VERSION
FROM adeliom/php:${PHP_VERSION}-fpm-wkhtmltopdf
FROM ghcr.io/agence-adeliom/php:${PHP_VERSION}-fpm-wkhtmltopdf

RUN apk --update add --no-cache \
supervisor \
Expand Down
2 changes: 1 addition & 1 deletion php/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ This list can be outdated, you can verify by executing : `docker run --rm -it a
### Compiling extensions in the custom image with [mlocati/docker-php-extension-installer](https://github.com/mlocati/docker-php-extension-installer)

```Dockerfile
FROM adeliom/php:8.1-apache
FROM ghcr.io/agence-adeliom/php:8.1-apache

# Install tidy extension
RUN install-php-extensions tidy
Expand Down

0 comments on commit e853a92

Please sign in to comment.