Skip to content

Conversation

@ujgsp
Copy link
Contributor

@ujgsp ujgsp commented Aug 5, 2025

Deskripsi

Menambahkan fitur github action deploy otomatis via ansible
sementara pada PR ini event nya pakai:

on:
  pull_request:
    branches:
      - dev

Untuk uji coba apakah ansiblenya berjalan atau tidak, kalau berjalan, nanti gh action ini akan diubah ke event:

on:
  release:
    types: [published]

Setiap ada rilisi baru, gh action nya akan dijalankan dan menjalankan ansible


Untuk kebutuhan akses secret, akan saya pm ke grup

Masalah Terkait (Related Issue)

  • Fitur deploy otomatis ke server demo via ansible

@ujgsp ujgsp changed the title Dev ansible Fitur: Menambahkan gh action + ansible Aug 5, 2025
@ujgsp
Copy link
Contributor Author

ujgsp commented Aug 5, 2025

sudah bisa deploy via event (untuk percobaan jalankan ansible)

on:
  pull_request:
    branches:
      - dev

Berikut tangkapan layarnya:
image

ini link runnernya:
https://github.com/OpenSID/OpenDK/actions/runs/16740988094/job/47389543516

harusnya untuk event publish rilis juga sudah bisa

on:
  release:
    types: [published]

@ujgsp ujgsp requested review from apidong and pandigresik and removed request for pandigresik August 5, 2025 05:53
@apidong apidong requested a review from Copilot August 5, 2025 07:21
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds automated deployment functionality using GitHub Actions and Ansible. The workflow triggers on release publication and executes an Ansible playbook to deploy OpenDK to a production server via SSH.

  • Implements GitHub Actions workflow for automated deployment
  • Integrates SSH-based deployment using appleboy/ssh-action
  • Configures Ansible playbook execution on remote server
Comments suppressed due to low confidence (2)

.github/workflows/deploy.yml:17

  • The version v1.0.0 for appleboy/ssh-action does not exist. The latest available version is v0.1.7. Consider using 'appleboy/ssh-action@v0.1.7' or check the repository for the correct version tag.
        uses: appleboy/ssh-action@v1.0.0

.github/workflows/deploy.yml:22

  • The secret name 'CICD_SERVER_IP_PORT' is inconsistent. It should be 'CICD_SERVER_PORT' since it represents the SSH port number, not an IP port combination.
          port: ${{ secrets.CICD_SERVER_IP_PORT }}

@apidong apidong merged commit 1093b71 into dev Aug 5, 2025
1 check failed
@apidong apidong deleted the dev-ansible branch August 5, 2025 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants