-
-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (35 loc) · 1.01 KB
/
php-8.0.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Build PHP 8.0
on:
workflow_dispatch:
jobs:
buildx:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up SSH
uses: MrSquaare/ssh-setup-action@v3
with:
host: ${{ secrets.SSH_ARM64_HOST }}
private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
platforms: amd64
append: |
- endpoint: ssh://${{ secrets.SSH_ARM64_USER }}@${{ secrets.SSH_ARM64_HOST }}
platforms: arm64
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/bake-action@v6
with:
push: true
workdir: php
source: "."
set: |
*.args.php_version=8.0.30
*.tags=nosweatframework/php:8.0.30