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
66fb8046
Commit
66fb8046
authored
Aug 21, 2021
by
mingyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docker github
parent
a6f7cb5e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
docker_github.yml
workflows/docker_github.yml
+32
-0
No files found.
workflows/docker_github.yml
0 → 100644
View file @
66fb8046
name
:
Docker Github
on
:
push
:
branches
:
-
main
jobs
:
build
:
name
:
Build image
runs-on
:
ubuntu-latest
steps
:
-
name
:
Docker login
uses
:
docker/login-action@v1
with
:
registry
:
docker.pkg.github.com
username
:
${{ github.actor }}
password
:
${{ secrets.AK }}
-
name
:
Checkout code
uses
:
actions/checkout@v2
with
:
submodules
:
true
-
name
:
Docker build
run
:
|
docker build -t docker.pkg.github.com/$GITHUB_REPOSITORY:latest -f docker/Dockerfile .
-
name
:
Docker push latest
if
:
${{ github.ref == 'refs/heads/main' }}
run
:
|
docker push docker.pkg.github.com/$GITHUB_REPOSITORY:latest
-
name
:
Docker push production
if
:
${{ github.ref == 'refs/heads/deploy' }}
run
:
|
docker tag docker.pkg.github.com/$GITHUB_REPOSITORY:latest docker.pkg.github.com/$GITHUB_REPOSITORY:production
docker push docker.pkg.github.com/$GITHUB_REPOSITORY: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