Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
rails_dingtalk
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
other
rails_dingtalk
Commits
797ff103
Commit
797ff103
authored
Aug 17, 2021
by
mingyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test outside
parent
3dc720d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
cd.yml
workflows/cd.yml
+6
-6
No files found.
workflows/cd.yml
View file @
797ff103
...
@@ -15,19 +15,19 @@ jobs:
...
@@ -15,19 +15,19 @@ jobs:
submodules
:
true
submodules
:
true
-
name
:
Docker build
-
name
:
Docker build
run
:
|
run
:
|
docker build -t
docker.pkg.github.com
/$GITHUB_REPOSITORY/engine:latest .
docker build -t
${{ secrets.GITHUB_REGISTRY }}
/$GITHUB_REPOSITORY/engine:latest .
-
name
:
Docker login
-
name
:
Docker login
uses
:
docker/login-action@v1
uses
:
docker/login-action@v1
with
:
with
:
registry
:
docker.pkg.github.com
registry
:
${{ secrets.GITHUB_REGISTRY }}
username
:
${{
github.actor
}}
username
:
${{
secrets.GITHUB_USER
}}
password
:
${{ secrets.GITHUB_TOKEN }}
password
:
${{ secrets.GITHUB_TOKEN }}
-
name
:
Docker push latest
-
name
:
Docker push latest
if
:
${{ github.ref == 'refs/heads/main' }}
if
:
${{ github.ref == 'refs/heads/main' }}
run
:
|
run
:
|
docker push
docker.pkg.github.com
/$GITHUB_REPOSITORY/engine:latest
docker push
${{ secrets.GITHUB_REGISTRY }}
/$GITHUB_REPOSITORY/engine:latest
-
name
:
Docker push production
-
name
:
Docker push production
if
:
${{ github.ref == 'refs/heads/deploy' }}
if
:
${{ github.ref == 'refs/heads/deploy' }}
run
:
|
run
:
|
docker tag
docker.pkg.github.com/$GITHUB_REPOSITORY/engine:latest docker.pkg.github.com
/$GITHUB_REPOSITORY/engine:production
docker tag
${{ secrets.GITHUB_REGISTRY }}/$GITHUB_REPOSITORY/engine:latest ${{ secrets.GITHUB_REGISTRY }}
/$GITHUB_REPOSITORY/engine:production
docker push
docker.pkg.github.com
/$GITHUB_REPOSITORY/engine:production
docker push
${{ secrets.GITHUB_REGISTRY }}
/$GITHUB_REPOSITORY/engine:production
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