From 363b8f0befb908a6d2f26317c1cba04de797570f Mon Sep 17 00:00:00 2001 From: muokicaleb <15628143+muokicaleb@users.noreply.github.com> Date: Fri, 28 May 2021 07:19:15 +0300 Subject: [PATCH 1/6] added GitHub actions action.yml and main.yml --- .github/workflows/main.yaml | 25 +++++++++++++++++++++++++ .travis.yml | 13 ------------- actions/action.yaml | 12 ++++++++++++ 3 files changed, 37 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/main.yaml delete mode 100644 .travis.yml create mode 100644 actions/action.yaml diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 0000000..dda02e1 --- /dev/null +++ b/.github/workflows/main.yaml @@ -0,0 +1,25 @@ +name: A workflow for Github Actions Tutorial +on: push + +jobs: + build: + name: main workflow + runs-on: ubuntu-latest + steps: + + - name: community-developed Action + uses: actions/checkout@v1 + + - name: Setup docker + uses: ./actions + + - name: Build compose stack + run: docker-compose build + + - name: Run docker-compose script + run: docker-compose run image-sequencer-app bash -c "NODE_ENV=development npm install && npm test" + + + + + \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 2f01326..0000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -sudo: required -language: generic -services: - - docker - -before_install: - - docker build -t image-sequencer-app . - - docker-compose build - -script: docker-compose run image-sequencer-app bash -c "NODE_ENV=development npm install && npm test" -os: - - linux - # - osx : No docker support diff --git a/actions/action.yaml b/actions/action.yaml new file mode 100644 index 0000000..59178ea --- /dev/null +++ b/actions/action.yaml @@ -0,0 +1,12 @@ +name: "image sequencer app actions" +description: "GitHub Actions Image sequencer project " +author: "muokicaleb@tuta.io" + + +runs: + using: "docker" + image: "../Dockerfile" + +branding: + icon: "settings" + color: "purple" \ No newline at end of file From 5a84da7c7f4b0fb744cc5bce41680bbff17a4bb8 Mon Sep 17 00:00:00 2001 From: muokicaleb <15628143+muokicaleb@users.noreply.github.com> Date: Fri, 28 May 2021 07:40:58 +0300 Subject: [PATCH 2/6] autocommit --- .github/workflows/main.yaml | 2 +- actions/action.yaml | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index dda02e1..a6102f7 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -11,7 +11,7 @@ jobs: uses: actions/checkout@v1 - name: Setup docker - uses: ./actions + uses: docker build -t image-sequencer-app . - name: Build compose stack run: docker-compose build diff --git a/actions/action.yaml b/actions/action.yaml index 59178ea..0578864 100644 --- a/actions/action.yaml +++ b/actions/action.yaml @@ -6,7 +6,3 @@ author: "muokicaleb@tuta.io" runs: using: "docker" image: "../Dockerfile" - -branding: - icon: "settings" - color: "purple" \ No newline at end of file From 8c1b07edd8e4194ddb17c2e2494ebb0bf2120407 Mon Sep 17 00:00:00 2001 From: muokicaleb <15628143+muokicaleb@users.noreply.github.com> Date: Fri, 28 May 2021 07:42:31 +0300 Subject: [PATCH 3/6] autocommit --- .github/workflows/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index a6102f7..dda02e1 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -11,7 +11,7 @@ jobs: uses: actions/checkout@v1 - name: Setup docker - uses: docker build -t image-sequencer-app . + uses: ./actions - name: Build compose stack run: docker-compose build From 6c772d7375e80aff987b8613cb6b4f2c0905fa91 Mon Sep 17 00:00:00 2001 From: muokicaleb <15628143+muokicaleb@users.noreply.github.com> Date: Fri, 28 May 2021 07:51:49 +0300 Subject: [PATCH 4/6] using docker cli master to buikd image --- .github/workflows/main.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index dda02e1..00ed921 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -10,8 +10,10 @@ jobs: - name: community-developed Action uses: actions/checkout@v1 - - name: Setup docker - uses: ./actions + - name: Build docker image + uses: actions/docker/cli@master + with: + args: build -t image-sequencer-app . - name: Build compose stack run: docker-compose build From 5748d621e125bde073fdcb6fd38cacf4ef887d12 Mon Sep 17 00:00:00 2001 From: muokicaleb <15628143+muokicaleb@users.noreply.github.com> Date: Fri, 28 May 2021 07:54:00 +0300 Subject: [PATCH 5/6] autocommit --- .github/workflows/main.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 00ed921..0cceb69 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -11,9 +11,7 @@ jobs: uses: actions/checkout@v1 - name: Build docker image - uses: actions/docker/cli@master - with: - args: build -t image-sequencer-app . + run: docker build -t image-sequencer-app . - name: Build compose stack run: docker-compose build From 81528380c6c31d830e779c5165d054a2dd8fde25 Mon Sep 17 00:00:00 2001 From: muokicaleb <15628143+muokicaleb@users.noreply.github.com> Date: Fri, 28 May 2021 07:57:39 +0300 Subject: [PATCH 6/6] changed repo from travis ci to github actions --- actions/action.yaml | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 actions/action.yaml diff --git a/actions/action.yaml b/actions/action.yaml deleted file mode 100644 index 0578864..0000000 --- a/actions/action.yaml +++ /dev/null @@ -1,8 +0,0 @@ -name: "image sequencer app actions" -description: "GitHub Actions Image sequencer project " -author: "muokicaleb@tuta.io" - - -runs: - using: "docker" - image: "../Dockerfile"