Skip to content

Commit

Permalink
tag test
Browse files Browse the repository at this point in the history
  • Loading branch information
lijiakui committed Mar 17, 2022
1 parent eda58a8 commit 6b377e3
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,22 @@ name: Tag Test
on:
push:
tags:
- 'v*.*.*'
- "v*.*.*"
jobs:
test-tags:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# 测试 github context
- name: 'test github context info'
run:
echo ${{github.ref}}
- name: "test github context info"
run: echo ${{github.ref}}
echo ${{github.ref_name}}
echo ${{github.sha}}
# 测试查找并且替换
- name: Find and Replace
uses: jacobtomlinson/gha-find-replace@v2
with:
with:
find: "{{tag}}"
replace: ${{github.ref_name}}
include: "docker-compose-online.yml"
- run: cat docker-compose-online.yml
- run: cat docker-compose-online.yml
File renamed without changes.
2 changes: 1 addition & 1 deletion mongo-entrypoint/setup.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

# shell脚本中发生错误,即命令返回值不等于0,则停止执行并退出shell
# mogondb 必须是初次部署
set -e

mongo <<EOF
Expand Down Expand Up @@ -31,4 +32,3 @@ db.works.insertMany([
}
])
EOF

3 changes: 3 additions & 0 deletions test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ services:
- 27017:27017
env_file:
- .env
restart: always
lego-redis:
image: redis:latest
container_name: lego-redis
Expand All @@ -24,10 +25,12 @@ services:
- 6379:6379
env_file:
- .env
restart: always
lego-backend:
image: registry.cn-chengdu.aliyuncs.com/jaquelee/h5brick:0.0.2
container_name: lego-backend
ports:
- 7002:7001
env_file:
- .env
restart: always

0 comments on commit 6b377e3

Please sign in to comment.