Skip to content

Build docker

Build docker #130

Workflow file for this run

name: Build docker
on:
schedule:
- cron: '0 23 * * *'
push:
branches: master
workflow_dispatch:
jobs:
build-amd64:
runs-on: ubuntu-latest
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
build-arm64v8:
runs-on: [self-hosted, Linux, ARM64]
if: false
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