Skip to content

Commit

Permalink
Update build-docker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rustdesk authored May 2, 2024
1 parent 9c276e1 commit 34466b5
Showing 1 changed file with 40 additions and 3 deletions.
43 changes: 40 additions & 3 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
workflow_dispatch:

jobs:
build:
build-amd64:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand All @@ -19,7 +19,44 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
push: true
tags: rustdesk/makepkg:latest
provenance: false
tags: rustdesk/makepkg:latest-amd64

build-arm64v8:
runs-on: [self-hosted, Linux, ARM64]
steps:
- name: Checkout repository
uses: actions/checkout@v1
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
provenance: false
tags: rustdesk/makepkg:latest-arm64v8

docker-manifest:
needs: [build-amd64, build-arm64v8]
runs-on: ubuntu-22.04
steps:
- name: Log in to Docker Hub
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Create and push manifest (:latest)
uses: Noelware/docker-manifest-action@master
with:
base-image: rustdesk/makepkg:latest
extra-images: rustdesk/makepkg:latest-amd64,rustdesk/makepkg:latest-arm64v8
push: true

0 comments on commit 34466b5

Please sign in to comment.