Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1e6d34f0
authored
Oct 12, 2025
by
Seefs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ignore ghcr
parent
250f10fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
35 deletions
+35
-35
.github/workflows/docker-image-arm64.yml
+35
-35
No files found.
.github/workflows/docker-image-arm64.yml
View file @
1e6d34f0
...
@@ -38,8 +38,8 @@ jobs:
...
@@ -38,8 +38,8 @@ jobs:
echo "Building tag: $TAG for ${{ matrix.arch }}"
echo "Building tag: $TAG for ${{ matrix.arch }}"
-
name
:
Normalize GHCR repository
#
- name: Normalize GHCR repository
run
:
echo "GHCR_REPOSITORY=${GITHUB_REPOSITORY,,}" >> $GITHUB_ENV
#
run: echo "GHCR_REPOSITORY=${GITHUB_REPOSITORY,,}" >> $GITHUB_ENV
-
name
:
Set up Docker Buildx
-
name
:
Set up Docker Buildx
uses
:
docker/setup-buildx-action@v3
uses
:
docker/setup-buildx-action@v3
...
@@ -50,12 +50,12 @@ jobs:
...
@@ -50,12 +50,12 @@ jobs:
username
:
${{ secrets.DOCKERHUB_USERNAME }}
username
:
${{ secrets.DOCKERHUB_USERNAME }}
password
:
${{ secrets.DOCKERHUB_TOKEN }}
password
:
${{ secrets.DOCKERHUB_TOKEN }}
-
name
:
Log in to GHCR
#
- name: Log in to GHCR
uses
:
docker/login-action@v3
#
uses: docker/login-action@v3
with
:
#
with:
registry
:
ghcr.io
#
registry: ghcr.io
username
:
${{ github.actor }}
#
username: ${{ github.actor }}
password
:
${{ secrets.GITHUB_TOKEN }}
#
password: ${{ secrets.GITHUB_TOKEN }}
-
name
:
Extract metadata (labels)
-
name
:
Extract metadata (labels)
id
:
meta
id
:
meta
...
@@ -63,7 +63,7 @@ jobs:
...
@@ -63,7 +63,7 @@ jobs:
with
:
with
:
images
:
|
images
:
|
calciumion/new-api
calciumion/new-api
ghcr.io/${{ env.GHCR_REPOSITORY }}
#
ghcr.io/${{ env.GHCR_REPOSITORY }}
-
name
:
Build & push single-arch (to both registries)
-
name
:
Build & push single-arch (to both registries)
uses
:
docker/build-push-action@v6
uses
:
docker/build-push-action@v6
...
@@ -74,8 +74,8 @@ jobs:
...
@@ -74,8 +74,8 @@ jobs:
tags
:
|
tags
:
|
calciumion/new-api:${{ env.TAG }}-${{ matrix.arch }}
calciumion/new-api:${{ env.TAG }}-${{ matrix.arch }}
calciumion/new-api:latest-${{ matrix.arch }}
calciumion/new-api:latest-${{ matrix.arch }}
ghcr.io/${{ env.GHCR_REPOSITORY }}:${{ env.TAG }}-${{ matrix.arch }}
#
ghcr.io/${{ env.GHCR_REPOSITORY }}:${{ env.TAG }}-${{ matrix.arch }}
ghcr.io/${{ env.GHCR_REPOSITORY }}:latest-${{ matrix.arch }}
#
ghcr.io/${{ env.GHCR_REPOSITORY }}:latest-${{ matrix.arch }}
labels
:
${{ steps.meta.outputs.labels }}
labels
:
${{ steps.meta.outputs.labels }}
cache-from
:
type=gha
cache-from
:
type=gha
cache-to
:
type=gha,mode=max
cache-to
:
type=gha,mode=max
...
@@ -83,16 +83,16 @@ jobs:
...
@@ -83,16 +83,16 @@ jobs:
sbom
:
false
sbom
:
false
create_manifests
:
create_manifests
:
name
:
Create multi-arch manifests (Docker Hub
+ GHCR
)
name
:
Create multi-arch manifests (Docker Hub)
needs
:
[
build_single_arch
]
needs
:
[
build_single_arch
]
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
if
:
startsWith(github.ref, 'refs/tags/')
if
:
startsWith(github.ref, 'refs/tags/')
steps
:
steps
:
-
name
:
Extract tag
-
name
:
Extract tag
run
:
echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
run
:
echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
#
-
name
:
Normalize GHCR repository
#
- name: Normalize GHCR repository
run
:
echo "GHCR_REPOSITORY=${GITHUB_REPOSITORY,,}" >> $GITHUB_ENV
#
run: echo "GHCR_REPOSITORY=${GITHUB_REPOSITORY,,}" >> $GITHUB_ENV
-
name
:
Log in to Docker Hub
-
name
:
Log in to Docker Hub
uses
:
docker/login-action@v3
uses
:
docker/login-action@v3
...
@@ -115,23 +115,23 @@ jobs:
...
@@ -115,23 +115,23 @@ jobs:
calciumion/new-api:latest-arm64
calciumion/new-api:latest-arm64
# ---- GHCR ----
# ---- GHCR ----
-
name
:
Log in to GHCR
#
- name: Log in to GHCR
uses
:
docker/login-action@v3
#
uses: docker/login-action@v3
with
:
#
with:
registry
:
ghcr.io
#
registry: ghcr.io
username
:
${{ github.actor }}
#
username: ${{ github.actor }}
password
:
${{ secrets.GITHUB_TOKEN }}
#
password: ${{ secrets.GITHUB_TOKEN }}
-
name
:
Create & push manifest (GHCR - version)
#
- name: Create & push manifest (GHCR - version)
run
:
|
#
run: |
docker buildx imagetools create \
#
docker buildx imagetools create \
-t ghcr.io/${GHCR_REPOSITORY}:${TAG} \
#
-t ghcr.io/${GHCR_REPOSITORY}:${TAG} \
ghcr.io/${GHCR_REPOSITORY}:${TAG}-amd64 \
#
ghcr.io/${GHCR_REPOSITORY}:${TAG}-amd64 \
ghcr.io/${GHCR_REPOSITORY}:${TAG}-arm64
#
ghcr.io/${GHCR_REPOSITORY}:${TAG}-arm64
#
-
name
:
Create & push manifest (GHCR - latest)
#
- name: Create & push manifest (GHCR - latest)
run
:
|
#
run: |
docker buildx imagetools create \
#
docker buildx imagetools create \
-t ghcr.io/${GHCR_REPOSITORY}:latest \
#
-t ghcr.io/${GHCR_REPOSITORY}:latest \
ghcr.io/${GHCR_REPOSITORY}:latest-amd64 \
#
ghcr.io/${GHCR_REPOSITORY}:latest-amd64 \
ghcr.io/${GHCR_REPOSITORY}:latest-arm64
#
ghcr.io/${GHCR_REPOSITORY}:latest-arm64
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment