mirror of https://github.com/lnis-uofu/SOFA.git
[Action] Added Docker itegration
This commit is contained in:
parent
60060762e5
commit
51cd5d6630
|
@ -10,7 +10,6 @@ jobs:
|
||||||
linux:
|
linux:
|
||||||
name: Updating release repository
|
name: Updating release repository
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout SOFA-Chips
|
- name: Checkout SOFA-Chips
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
@ -21,28 +20,31 @@ jobs:
|
||||||
uses: actions/checkout@master
|
uses: actions/checkout@master
|
||||||
with:
|
with:
|
||||||
repository: lnis-uofu/actions_test_repo
|
repository: lnis-uofu/actions_test_repo
|
||||||
# repository: lnis-uofu/Caravel-SOFA-HD
|
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
path: Caravel-SOFA-HD
|
path: Caravel-SOFA-HD
|
||||||
|
|
||||||
|
- name: Where am I
|
||||||
|
uses: addnab/docker-run-action@v1
|
||||||
|
with:
|
||||||
|
image: goreganesh/open_mpw_prechecker
|
||||||
|
options: -v ${{github.workspace}}:/usr/local/workspace
|
||||||
|
run: pwd && ls
|
||||||
|
|
||||||
|
- name: Am I in the host container now
|
||||||
|
run: pwd && ls
|
||||||
|
|
||||||
- name: Updating files
|
- name: Updating files
|
||||||
run: pwd && ls && cd SOFA-Chips && source ./.github/workflows/sync_repo.sh
|
run: pwd && ls && cd SOFA-Chips && source ./.github/workflows/sync_repo.sh
|
||||||
|
|
||||||
- name: View directory
|
- name: View directory
|
||||||
run: pwd && ls
|
run: pwd && ls
|
||||||
|
|
||||||
- name: Commit files
|
- name: Deploy Changes
|
||||||
run: |
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
cd Caravel-SOFA-HD
|
|
||||||
pwd && ls
|
|
||||||
git config --local user.email "lnis.uofu@github.com"
|
|
||||||
git config --local user.name "lnis.uofu"
|
|
||||||
git commit -m "Auto commit" -a
|
|
||||||
|
|
||||||
- name: Push changes
|
|
||||||
uses: ad-m/github-push-action@master
|
|
||||||
with:
|
with:
|
||||||
directory: Caravel-SOFA-HD
|
user_name: "lnis.uofu"
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
user_email: "lnis.uofu@gmail.com"
|
||||||
repository: lnis-uofu/actions_test_repo
|
deploy_key: ${{ secrets.TEST_REPO_KEY }}
|
||||||
branch: master
|
external_repository: lnis-uofu/actions_test_repo
|
||||||
|
publish_dir: ./Caravel-SOFA-HD
|
||||||
|
publish_branch: master
|
||||||
|
commit_message: '[Deployment] ${{ github.event.head_commit.message }}'
|
||||||
|
|
Loading…
Reference in New Issue