Giter Club home page Giter Club logo

Comments (4)

yooniks9 avatar yooniks9 commented on July 20, 2024 1

Thank you, It's working

from action-ansible-playbook.

dawidd6 avatar dawidd6 commented on July 20, 2024

Could you please provide a link to the failed workflow run?

from action-ansible-playbook.

yooniks9 avatar yooniks9 commented on July 20, 2024

it's a private repo

here is my Workflow:

`name: Continue Integration

on:
push:
branches:
- master

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Cloning the repo
  uses: actions/checkout@v1

- name: Setup PHP
  uses: shivammathur/setup-php@v2
  with:
    php-version: 7.3
    extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite
    coverage: none

- name: Create .env file for composer
  run: |
    cp .env.example .env
- name: Composer install
  uses: docker://composer:2.0.2
  with:
    args: install --prefer-dist --no-interaction --no-suggest

- name: Setup Nodejs 10.x
  uses: actions/setup-node@v1
  with:
    node-version: '10.x'

- name: "[Nodejs] npm install & npm run production"
  run: |
    npm install
    npm run production
- name: Begin - Set permission to github-runner
  uses: dawidd6/action-ansible-playbook@v2
  with:
    playbook: ansible-begin.yml
    directory: ./
    key: ${{secrets.SSH_PRIVATE_KEY}}
    inventory: |
      [webservers]
      ${{secrets.SSH_SERVER}}
      [webservers:vars]
      ansible_python_interpreter=/usr/bin/python3
      ansible_user=${{secrets.SSH_USER}}
      ansible_sudo_pass=${{secrets.SSH_USER_PASS}}
    vault_password: ${{secrets.SSH_USER_PASS}}
    options: |
      -vvvv
      --user="${{secrets.SSH_USER}}"
      --extra-vars "ansible_sudo_pass=${{secrets.SSH_USER_PASS}}"
- name: Deploy to server without git & .env
  id: deploy
  uses: Pendect/[email protected]
  env:
    DEPLOY_KEY: ${{secrets.SSH_PRIVATE_KEY}}
  with:
    flags: '-avz --exclude=".git*" --exclude .env'
    options: ''
    ssh_options: '-p ${{secrets.SSH_PORT}}'
    src: '.'
    dest: '${{secrets.SSH_USER}}@${{secrets.SSH_SERVER}}:/var/www/redat/'

- name: End - Set permission to www-data, clear laravel cache
  uses: dawidd6/action-ansible-playbook@v2
  with:
    playbook: ansible-final.yml
    directory: ./
    key: ${{secrets.SSH_PRIVATE_KEY}}
    inventory: |
      [webservers]
      ${{secrets.SSH_SERVER}}
      [webservers:vars]
      ansible_python_interpreter=/usr/bin/python3
      ansible_user=${{secrets.SSH_USER}}
      ansible_sudo_pass=${{secrets.SSH_USER_PASS}}
    vault_password: ${{secrets.SSH_USER_PASS}}
    options: |
      -vvvv
      --user="${{secrets.SSH_USER}}"
      --extra-vars "ansible_sudo_pass=${{secrets.SSH_USER_PASS}}"`

from action-ansible-playbook.

yooniks9 avatar yooniks9 commented on July 20, 2024

it will fail if i run 2 actions uses: dawidd6/action-ansible-playbook@v2

If i remove either one of them, It's working without any problem

https://share.yooniks.dev/file/dsupload/Screen-Shot-2020-12-06-at-8.25.43-PM.png

from action-ansible-playbook.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.