add ghcr registry
This commit is contained in:
parent
d87da30ff4
commit
35caf14405
4 changed files with 44 additions and 12 deletions
24
.github/workflows/release_stable.yml
vendored
24
.github/workflows/release_stable.yml
vendored
|
@ -11,9 +11,10 @@ on:
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
env:
|
env:
|
||||||
DOTCLEAR_IMAGE: jcpd/docker-dotclear
|
DOTCLEAR_IMAGE: docker-dotclear
|
||||||
DOTCLEAR_CANAL: stable
|
DOTCLEAR_CANAL: stable
|
||||||
DOTCLEAR_URL: https://download.dotclear.org/versions.xml
|
DOTCLEAR_URL: https://download.dotclear.org/versions.xml
|
||||||
|
DOCKER_NAMESPACE: jcpd
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check_release:
|
check_release:
|
||||||
|
@ -63,7 +64,7 @@ jobs:
|
||||||
prerelease: false
|
prerelease: false
|
||||||
|
|
||||||
do_image:
|
do_image:
|
||||||
name: Build latest and versionned images and push to Docker hub
|
name: Build and push latest and versionned images
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
packages: write
|
packages: write
|
||||||
|
@ -85,6 +86,19 @@ jobs:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_TOKEN }}
|
password: ${{ secrets.DOCKER_TOKEN }}
|
||||||
|
|
||||||
|
- name: Log in to Github registry
|
||||||
|
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: set lower case github repository
|
||||||
|
run: |
|
||||||
|
echo "GITHUB_REPOSITORY=${REPO,,}" >>${GITHUB_ENV}
|
||||||
|
env:
|
||||||
|
REPO: '${{ github.repository }}'
|
||||||
|
|
||||||
- name: Build and push images
|
- name: Build and push images
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
|
@ -92,8 +106,10 @@ jobs:
|
||||||
sbom: true
|
sbom: true
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
${{ env.DOTCLEAR_IMAGE }}:${{ needs.check_release.outputs.version }}
|
${{ env.DOCKER_NAMESPACE }}/${{ env.DOTCLEAR_IMAGE }}:${{ needs.check_release.outputs.version }}
|
||||||
${{ env.DOTCLEAR_IMAGE }}:latest
|
${{ env.DOCKER_NAMESPACE }}/${{ env.DOTCLEAR_IMAGE }}:latest
|
||||||
|
ghcr.io/${{ env.GITHUB_REPOSITORY }}:${{ needs.check_release.outputs.version }}
|
||||||
|
ghcr.io/${{ env.GITHUB_REPOSITORY }}:latest
|
||||||
build-args: CANAL=${{ env.DOTCLEAR_CANAL }}
|
build-args: CANAL=${{ env.DOTCLEAR_CANAL }}
|
||||||
platforms: linux/386,linux/amd64,linux/arm/V6
|
platforms: linux/386,linux/amd64,linux/arm/V6
|
||||||
|
|
||||||
|
|
22
.github/workflows/release_testing.yml
vendored
22
.github/workflows/release_testing.yml
vendored
|
@ -6,12 +6,13 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
DOTCLEAR_IMAGE: jcpd/docker-dotclear
|
DOTCLEAR_IMAGE: docker-dotclear
|
||||||
DOTCLEAR_CANAL: testing
|
DOTCLEAR_CANAL: testing
|
||||||
|
DOCKER_NAMESPACE: jcpd
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
do_image:
|
do_image:
|
||||||
name: Build testing image and push to Docker hub
|
name: Build and push testing image
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
packages: write
|
packages: write
|
||||||
|
@ -31,13 +32,28 @@ jobs:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_TOKEN }}
|
password: ${{ secrets.DOCKER_TOKEN }}
|
||||||
|
|
||||||
|
- name: Log in to Github registry
|
||||||
|
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: set lower case github repository
|
||||||
|
run: |
|
||||||
|
echo "GITHUB_REPOSITORY=${REPO,,}" >>${GITHUB_ENV}
|
||||||
|
env:
|
||||||
|
REPO: '${{ github.repository }}'
|
||||||
|
|
||||||
- name: Build and push image
|
- name: Build and push image
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
sbom: true
|
sbom: true
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ env.DOTCLEAR_IMAGE }}:${{ env.DOTCLEAR_CANAL }}
|
tags: |
|
||||||
|
${{ env.DOCKER_NAMESPACE }}/${{ env.DOTCLEAR_IMAGE }}:${{ env.DOTCLEAR_CANAL }}
|
||||||
|
ghcr.io/${{ env.GITHUB_REPOSITORY }}:${{ env.DOTCLEAR_CANAL }}
|
||||||
build-args: CANAL=${{ env.DOTCLEAR_CANAL }}
|
build-args: CANAL=${{ env.DOTCLEAR_CANAL }}
|
||||||
platforms: linux/386,linux/amd64,linux/arm/V6
|
platforms: linux/386,linux/amd64,linux/arm/V6
|
||||||
|
|
||||||
|
|
6
.github/workflows/release_unstable.yml
vendored
6
.github/workflows/release_unstable.yml
vendored
|
@ -12,7 +12,7 @@ env:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
do_image:
|
do_image:
|
||||||
name: Build dev image and push to Docker hub
|
name: Build and push dev image
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
packages: write
|
packages: write
|
||||||
|
@ -32,14 +32,14 @@ jobs:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_TOKEN }}
|
password: ${{ secrets.DOCKER_TOKEN }}
|
||||||
|
|
||||||
- name: Log in to the Container registry
|
- name: Log in to Github registry
|
||||||
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
|
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: set lower case owner name
|
- name: set lower case github repository
|
||||||
run: |
|
run: |
|
||||||
echo "GITHUB_REPOSITORY=${REPO,,}" >>${GITHUB_ENV}
|
echo "GITHUB_REPOSITORY=${REPO,,}" >>${GITHUB_ENV}
|
||||||
env:
|
env:
|
||||||
|
|
|
@ -29,7 +29,7 @@ tool allowing anyone to publish on the web, regardless of their technical skills
|
||||||
This repository contains all features to build or run Dotclear on a Docker environment.
|
This repository contains all features to build or run Dotclear on a Docker environment.
|
||||||
It is hightly based on work from [darknao](https://github.com/darknao/docker-dotclear).
|
It is hightly based on work from [darknao](https://github.com/darknao/docker-dotclear).
|
||||||
|
|
||||||
* Dotclear docker images are avaialable at [Docker hub](https://hub.docker.com/r/jcpd/docker-dotclear)
|
* Dotclear docker images are avaialable at [Docker hub](https://hub.docker.com/r/jcpd/docker-dotclear) or [Github registry](https://github.com/JcDenis?tab=packages&repo_name=docker-dotclear)
|
||||||
* Dotclear docker sources are avaialable at [Github repository](https://github.com/JcDenis/docker-dotclear)
|
* Dotclear docker sources are avaialable at [Github repository](https://github.com/JcDenis/docker-dotclear)
|
||||||
|
|
||||||
### TAGS
|
### TAGS
|
||||||
|
@ -42,7 +42,7 @@ It is composed of Dotclear version or release type:
|
||||||
* testing: The latest dev of Dotclear stable branch
|
* testing: The latest dev of Dotclear stable branch
|
||||||
* dev : A Dotclear unstable (nightly) release
|
* dev : A Dotclear unstable (nightly) release
|
||||||
|
|
||||||
### Builds
|
### BUILDS
|
||||||
|
|
||||||
Clone this repository:
|
Clone this repository:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue