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
5303004e
authored
Feb 01, 2024
by
CaIon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci: update workflows
parent
65972ad4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
.github/workflows/docker-image-amd64.yml
+11
-5
.github/workflows/docker-image-arm64.yml
+1
-1
No files found.
.github/workflows/docker-image-amd64
-en
.yml
→
.github/workflows/docker-image-amd64.yml
View file @
5303004e
name
:
Publish Docker image (amd64
, English
)
name
:
Publish Docker image (amd64)
on
:
on
:
push
:
push
:
tags
:
tags
:
-
'
*'
-
'
*'
-
'
!*-alpha*'
workflow_dispatch
:
workflow_dispatch
:
inputs
:
inputs
:
name
:
name
:
...
@@ -24,21 +25,26 @@ jobs:
...
@@ -24,21 +25,26 @@ jobs:
run
:
|
run
:
|
git describe --tags > VERSION
git describe --tags > VERSION
-
name
:
Translate
run
:
|
python ./i18n/translate.py --repository_path . --json_file_path ./i18n/en.json
-
name
:
Log in to Docker Hub
-
name
:
Log in to Docker Hub
uses
:
docker/login-action@v2
uses
:
docker/login-action@v2
with
:
with
:
username
:
${{ secrets.DOCKERHUB_USERNAME }}
username
:
${{ secrets.DOCKERHUB_USERNAME }}
password
:
${{ secrets.DOCKERHUB_TOKEN }}
password
:
${{ secrets.DOCKERHUB_TOKEN }}
-
name
:
Log in to the Container registry
uses
:
docker/login-action@v2
with
:
registry
:
ghcr.io
username
:
${{ github.actor }}
password
:
${{ secrets.GITHUB_TOKEN }}
-
name
:
Extract metadata (tags, labels) for Docker
-
name
:
Extract metadata (tags, labels) for Docker
id
:
meta
id
:
meta
uses
:
docker/metadata-action@v4
uses
:
docker/metadata-action@v4
with
:
with
:
images
:
|
images
:
|
justsong/one-api-en
calciumion/new-api
ghcr.io/${{ github.repository }}
-
name
:
Build and push Docker images
-
name
:
Build and push Docker images
uses
:
docker/build-push-action@v3
uses
:
docker/build-push-action@v3
...
...
.github/workflows/docker-image-arm64.yml
View file @
5303004e
...
@@ -49,7 +49,7 @@ jobs:
...
@@ -49,7 +49,7 @@ jobs:
uses
:
docker/metadata-action@v4
uses
:
docker/metadata-action@v4
with
:
with
:
images
:
|
images
:
|
justsong/one
-api
calciumion/new
-api
ghcr.io/${{ github.repository }}
ghcr.io/${{ github.repository }}
-
name
:
Build and push Docker images
-
name
:
Build and push Docker images
...
...
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