Skip to content

Commit

Permalink
test resusable action
Browse files Browse the repository at this point in the history
  • Loading branch information
niazhussain committed Jan 28, 2024
1 parent a57fc98 commit 10badec
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 37 deletions.
20 changes: 2 additions & 18 deletions .github/workflows/MannualPublish_and_Deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,14 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Trigger Build Docker Image workflow
uses: convictional/[email protected]
with:
owner: ${{ github.repository_owner }}
repo: ${{ github.event.repository.name }}
github_token: ${{ secrets.GHACTION }}
workflow_file_name: publishOnDHR.yml
ref: dev
trigger_workflow: true
wait_workflow: true
uses: ./.github/workflows/publishOnDHR.yml
trigger-deploy:
name: Deploy
runs-on: ubuntu-20.04
needs: trigger-build_and_publish
steps:
- name: Trigger Deployment workflow
uses: convictional/[email protected]
with:
owner: ${{ github.repository_owner }}
repo: ${{ github.event.repository.name }}
github_token: ${{ secrets.GHACTION }}
workflow_file_name: trigger-deployment.yml
ref: dev
trigger_workflow: true
wait_workflow: true
uses: ./.github/workflows/trigger-deployment.yml
trigger-autotest:
name: Autotest
runs-on: ubuntu-20.04
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/publishOnDHR.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
name: Build Docker Image

on:
workflow_dispatch:
# workflow_run:
# workflows: ["Trigger Workflow"]
# types:
# - completed

workflow_call:
jobs:
push_to_registry:
runs-on: ubuntu-20.04
Expand All @@ -16,6 +11,8 @@ jobs:
uses: insightsengineering/[email protected]
- name: Check out the repo
uses: actions/checkout@v3
with:
ref: ${{ github.event.client_payload.currentbranch }}

- name: Log in to Docker Hub
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
Expand All @@ -39,5 +36,5 @@ jobs:
context: .
file: scripts/Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
tags: ${{ github.event.client_payload.currentbranch }}
labels: ${{ steps.meta.outputs.labels }}
6 changes: 1 addition & 5 deletions .github/workflows/trigger-autotest.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
name: Autotest

on:
workflow_dispatch:
# workflow_run:
# workflows: ["Trigger Workflow"]
# types:
# - completed
workflow_call:
jobs:
Test:
name: Run Autotest
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/trigger-deployment.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
name: Deploy

on:
workflow_dispatch:
# workflow_run:
# workflows: ["Trigger Workflow"]
# types:
# - completed
runs-on: ubuntu-20.04
workflow_call:
jobs:
deploy:
name: deployment
Expand Down
2 changes: 1 addition & 1 deletion scripts/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM docker.io/paritytech/ci-linux:production as builder

WORKDIR /node
COPY . .
RUN cargo build --release
#RUN cargo build --release

FROM docker.io/library/ubuntu:22.04

Expand Down

0 comments on commit 10badec

Please sign in to comment.