fix: Make GHCR lowercase (#2218)

This commit is contained in:
Ayaz Salikhov
2025-06-12 20:42:36 +01:00
committed by GitHub
parent 0273ba0da3
commit 93add775b2
2 changed files with 10 additions and 5 deletions

View File

@@ -103,7 +103,6 @@ jobs:
name: Merge and push multi-arch GCC docker image
runs-on: [self-hosted, heavy]
needs: [gcc-amd64, gcc-arm64]
if: ${{ github.event_name != 'pull_request' }}
steps:
- uses: actions/checkout@v4
@@ -118,6 +117,7 @@ jobs:
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
if: github.event_name != 'pull_request'
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
with:
registry: ghcr.io
@@ -125,15 +125,20 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PW }}
- name: Create and push multi-arch manifest
if: steps.changed-files.outputs.any_changed == 'true'
- name: Make GHCR_REPO lowercase
run: |
for image in ${{ env.GHCR_REPO }}/clio-gcc rippleci/clio_gcc; do
echo "GHCR_REPO_LC=$(echo ${{env.GHCR_REPO}} | tr '[:upper:]' '[:lower:]')" >> ${GITHUB_ENV}
- name: Create and push multi-arch manifest
if: github.event_name != 'pull_request' && steps.changed-files.outputs.any_changed == 'true'
run: |
for image in ${{ env.GHCR_REPO_LC }}/clio-gcc rippleci/clio_gcc; do
docker buildx imagetools create \
-t $image:latest \
-t $image:12 \

View File

@@ -4,7 +4,7 @@ ARG DEBIAN_FRONTEND=noninteractive
ARG TARGETARCH
ARG UBUNTU_VERSION=20.04
ARG GCC_VERSION=12.3.0
ARG BUILD_VERSION=3
ARG BUILD_VERSION=4
RUN apt-get update \
&& apt-get install -y --no-install-recommends --no-install-suggests \