Skip to content

Commit

Permalink
cicd, remove cd_edge
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalandy committed Jan 5, 2025
1 parent ca91e86 commit 8cc9878
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 32 deletions.
36 changes: 36 additions & 0 deletions .github/unused_workflow/cd_edge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# ----------------------------------------------
# Continuous Deployment / edge OR stable
# I duplicate this in two jobs to have a better visual representation
# ----------------------------------------------
cd_edge:
needs: [build_edge]
if: github.ref_type != 'tag'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: zcong1993/[email protected]
with:
timezone: America/Montreal

- name: cd edge
uses: appleboy/[email protected]
with:
host: ${{ secrets.NODE1 }}
port: ${{ secrets.SSH_PORT }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_KEY_ACTIONS }}
passphrase: ${{ secrets.SSH_KEY_ACTIONS_PASSPHRASE }}
script: |
${{ secrets.SSH_CMD__UPDATE_DKR_IMG_EDGE }}
hostname
#sync: true
#host: "${{ secrets.NODE1 }},${{ secrets.NODE2 }},${{ secrets.NODE3 }}"
# alt projet: fifsky/ssh-action@master https://github.com/appleboy/ssh-action/issues/80#issuecomment-759473472

- name: Add a comment (from a PR)
run: |
echo "## For reference (from a PR)" >> $GITHUB_STEP_SUMMARY
echo "Docker image: ${{ needs.myvars.outputs.TAG_DKR_BRANCH_NAME }}" >> $GITHUB_STEP_SUMMARY
echo "Please use docker images that were build from a tag. More details: https://github.com/firepress-org/ghostfire/issues/265" >> $GITHUB_STEP_SUMMARY
34 changes: 2 additions & 32 deletions .github/workflows/ghostv5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -323,38 +323,8 @@ jobs:
# Continuous Deployment / edge OR stable
# I duplicate this in two jobs to have a better visual representation
# ----------------------------------------------
cd_edge:
needs: [build_edge]
if: github.ref_type != 'tag'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: zcong1993/[email protected]
with:
timezone: America/Montreal

- name: cd edge
uses: appleboy/[email protected]
with:
host: ${{ secrets.NODE1 }}
port: ${{ secrets.SSH_PORT }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_KEY_ACTIONS }}
passphrase: ${{ secrets.SSH_KEY_ACTIONS_PASSPHRASE }}
script: |
${{ secrets.SSH_CMD__UPDATE_DKR_IMG_EDGE }}
hostname
#sync: true
#host: "${{ secrets.NODE1 }},${{ secrets.NODE2 }},${{ secrets.NODE3 }}"
# alt projet: fifsky/ssh-action@master https://github.com/appleboy/ssh-action/issues/80#issuecomment-759473472

- name: Add a comment (from a PR)
run: |
echo "## For reference (from a PR)" >> $GITHUB_STEP_SUMMARY
echo "Docker image: ${{ needs.myvars.outputs.TAG_DKR_BRANCH_NAME }}" >> $GITHUB_STEP_SUMMARY
echo "Please use docker images that were build from a tag. More details: https://github.com/firepress-org/ghostfire/issues/265" >> $GITHUB_STEP_SUMMARY
# cd_edge:
# see unused_workflow/cd_edge.yml

cd_stable:
needs: [build_stable]
Expand Down

0 comments on commit 8cc9878

Please sign in to comment.