From df49eed9f32451eb0ef66afcfd88e0bdb8232a5f Mon Sep 17 00:00:00 2001 From: wonderf00l Date: Sat, 9 Dec 2023 20:06:28 +0300 Subject: [PATCH] TP-c01_ci-cd: changed triggers, add step --- .github/workflows/ci.yml | 5 +---- .github/workflows/deployment.yml | 5 ++--- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 69188a3..e0f2a3f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,10 +2,7 @@ name: Start pinspire CI on: workflow_dispatch: {} - push: - branches: - - TP-c01_ci-cd - - dev4 + push: {} pull_request: types: [opened, edited, reopened] branches: [main, dev4] diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index bb54dc3..9036f2b 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -14,9 +14,8 @@ jobs: build_images: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - with: - ref: dev3 + - name: get repository code + uses: actions/checkout@v4 - name: Login to DockerHub Registry run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin - name: Build docker images of services