Merge pull request 'ci/gitea-actions/macos-runner' (#26) from ci/gitea-actions/macos-runner into main

Reviewed-on: Loverde-Company-LTDA/Pedi-Foods-Skip#26
This commit is contained in:
2026-07-30 13:08:35 -03:00
3 changed files with 12 additions and 66 deletions

View File

@@ -7,19 +7,10 @@ on:
jobs: jobs:
wake-macos-vm: wake-macos-vm:
runs-on: docker runs-on: macos-ctl
container:
image: alpine:3.20
steps: steps:
- name: Install ssh client
run: apk add --no-cache openssh-client
- name: Start macOS VM container - name: Start macOS VM container
run: | run: docker start macos
mkdir -p ~/.ssh
echo "${{ secrets.VPS_SSH_KEY }}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
ssh -o StrictHostKeyChecking=no -i ~/.ssh/id_ed25519 \
${{ secrets.VPS_SSH_USER }}@${{ secrets.VPS_SSH_HOST }} start
build-and-upload: build-and-upload:
needs: wake-macos-vm needs: wake-macos-vm
@@ -64,16 +55,7 @@ jobs:
sleep-macos-vm: sleep-macos-vm:
needs: build-and-upload needs: build-and-upload
if: always() if: always()
runs-on: docker runs-on: macos-ctl
container:
image: alpine:3.20
steps: steps:
- name: Install ssh client
run: apk add --no-cache openssh-client
- name: Stop macOS VM container - name: Stop macOS VM container
run: | run: docker stop macos
mkdir -p ~/.ssh
echo "${{ secrets.VPS_SSH_KEY }}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
ssh -o StrictHostKeyChecking=no -i ~/.ssh/id_ed25519 \
${{ secrets.VPS_SSH_USER }}@${{ secrets.VPS_SSH_HOST }} stop

View File

@@ -7,19 +7,10 @@ on:
jobs: jobs:
wake-macos-vm: wake-macos-vm:
runs-on: docker runs-on: macos-ctl
container:
image: alpine:3.20
steps: steps:
- name: Install ssh client
run: apk add --no-cache openssh-client
- name: Start macOS VM container - name: Start macOS VM container
run: | run: docker start macos
mkdir -p ~/.ssh
echo "${{ secrets.VPS_SSH_KEY }}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
ssh -o StrictHostKeyChecking=no -i ~/.ssh/id_ed25519 \
${{ secrets.VPS_SSH_USER }}@${{ secrets.VPS_SSH_HOST }} start
build-archive-deliver: build-archive-deliver:
needs: wake-macos-vm needs: wake-macos-vm
@@ -71,16 +62,7 @@ jobs:
sleep-macos-vm: sleep-macos-vm:
needs: build-archive-deliver needs: build-archive-deliver
if: always() if: always()
runs-on: docker runs-on: macos-ctl
container:
image: alpine:3.20
steps: steps:
- name: Install ssh client
run: apk add --no-cache openssh-client
- name: Stop macOS VM container - name: Stop macOS VM container
run: | run: docker stop macos
mkdir -p ~/.ssh
echo "${{ secrets.VPS_SSH_KEY }}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
ssh -o StrictHostKeyChecking=no -i ~/.ssh/id_ed25519 \
${{ secrets.VPS_SSH_USER }}@${{ secrets.VPS_SSH_HOST }} stop

View File

@@ -7,19 +7,10 @@ on:
jobs: jobs:
wake-macos-vm: wake-macos-vm:
runs-on: docker runs-on: macos-ctl
container:
image: alpine:3.20
steps: steps:
- name: Install ssh client
run: apk add --no-cache openssh-client
- name: Start macOS VM container - name: Start macOS VM container
run: | run: docker start macos
mkdir -p ~/.ssh
echo "${{ secrets.VPS_SSH_KEY }}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
ssh -o StrictHostKeyChecking=no -i ~/.ssh/id_ed25519 \
${{ secrets.VPS_SSH_USER }}@${{ secrets.VPS_SSH_HOST }} start
test: test:
needs: wake-macos-vm needs: wake-macos-vm
@@ -39,16 +30,7 @@ jobs:
sleep-macos-vm: sleep-macos-vm:
needs: test needs: test
if: always() if: always()
runs-on: docker runs-on: macos-ctl
container:
image: alpine:3.20
steps: steps:
- name: Install ssh client
run: apk add --no-cache openssh-client
- name: Stop macOS VM container - name: Stop macOS VM container
run: | run: docker stop macos
mkdir -p ~/.ssh
echo "${{ secrets.VPS_SSH_KEY }}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
ssh -o StrictHostKeyChecking=no -i ~/.ssh/id_ed25519 \
${{ secrets.VPS_SSH_USER }}@${{ secrets.VPS_SSH_HOST }} stop