Skip to content

Commit

Permalink
Update node.js.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mnagaraju5628 committed Feb 15, 2024
1 parent 64e9e28 commit 8375267
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1 @@
name: Build and Push Docker Image

on:
push:
branches:
- main # Trigger the workflow on pushes to the main branch

jobs:
build_and_push_docker_image:
runs-on: self-hosted

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install Ansible
run: sudo apt update && sudo apt install -y ansible

- name: Install Docker dependencies
run: |
sudo apt update
sudo apt install -y containerd docker.io
- name: Run Ansible playbook to build Docker image
run: ansible-playbook ansible/repo.yaml
env:
PAT: ${{ secrets.PAT }} # Required for Ansible to access the repository

0 comments on commit 8375267

Please sign in to comment.