From 23555b15e9348a830bd6cecb8a061241c7e9ce48 Mon Sep 17 00:00:00 2001 From: issanovich Date: Tue, 29 Oct 2024 17:19:51 +0000 Subject: [PATCH] add ascii pipeline --- .github/workflows/ascii-workflow.yml | 27 +++++++++++++++++++++++++++ .github/workflows/first_job.yml | 17 ++++++++--------- Dockerfile | 2 ++ 3 files changed, 37 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/ascii-workflow.yml create mode 100644 Dockerfile diff --git a/.github/workflows/ascii-workflow.yml b/.github/workflows/ascii-workflow.yml new file mode 100644 index 0000000..8e64971 --- /dev/null +++ b/.github/workflows/ascii-workflow.yml @@ -0,0 +1,27 @@ +name: ASCII Workflow + +on: + - push + +jobs: + first_job: + name: ASCII + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Install Cowsay Program + run: sudo apt-get install cowsay -y + + - name: Execute Cowsay Command + run: cowsay -f dragon "Run for cover, I am a DRAGON......RAWR" >> dragon.txt + + - name: Test file exists + run: grep -i "dragon" dragon.txt + + - name: Read File + run: cat dragon.txt + + - name: List Repo files + run: ls -ltra diff --git a/.github/workflows/first_job.yml b/.github/workflows/first_job.yml index f0726ed..878de2e 100644 --- a/.github/workflows/first_job.yml +++ b/.github/workflows/first_job.yml @@ -4,15 +4,14 @@ on: - push jobs: - first_job: - name: jomacs-k8s + first_job: runs-on: ubuntu-latest steps: - - name: First Message - run: echo "Welcome to the world of CICD with Github Actions " + - name: Checkout Code + uses: actions/checkout@v4 - - name: List All Files including hidden - run: ls -1a - - - name: Show Present working Directory - run: pwd + - name: List and Read files + run: | + echo "My first GitHub Actions Job" + ls -1 + cat dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e15f5f7 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,2 @@ +FROM tomcat:8.0.20-jre8 +COPY target/*.war /usr/local/tomcat/webapps/cohort7.war