Create chrome_thel8.yml
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
name: Get Chrome RPMs for RHEL8
|
||||
|
||||
on:
|
||||
workflow_dispatch: # 수동 실행 버튼 활성화
|
||||
|
||||
jobs:
|
||||
download-rpms:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Extract RPMs using RHEL8-like Docker
|
||||
run: |
|
||||
# 1. RHEL 8 호환 이미지(Oracle Linux 8) 실행 및 패키지 다운로드
|
||||
docker run --name rpm-fetcher -v ${{ github.workspace }}:/out oraclelinux:8 /bin/bash -c "
|
||||
# 저장소 설정
|
||||
dnf install -y dnf-utils;
|
||||
cat <<EOF > /etc/yum.repos.d/google-chrome.repo
|
||||
[google-chrome]
|
||||
name=google-chrome
|
||||
baseurl=http://dl.google.com
|
||||
enabled=1
|
||||
gpgcheck=1
|
||||
gpgkey=https://dl-ssl.google.com
|
||||
EOF
|
||||
# 의존성 포함 모든 RPM 다운로드
|
||||
mkdir /chrome_bundle;
|
||||
dnf download --resolve --alldeps -y google-chrome-stable --destdir=/chrome_bundle;
|
||||
cp -r /chrome_bundle/* /out/
|
||||
zip -r chrome-rhel8-bundle.zip ./*.rpm
|
||||
|
||||
- name: Upload Zip Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: chrome-bundle-file
|
||||
path: chrome-rhel8-bundle.zip
|
||||
retention-days: 1 # 1일 후 자동 삭제
|
||||
Reference in New Issue
Block a user