Skip to content

Publish Docker image xrdp/ubuntu20.04_core #1

Publish Docker image xrdp/ubuntu20.04_core

Publish Docker image xrdp/ubuntu20.04_core #1

name: Publish Docker image xrdp/ubuntu20.04_core
on: [workflow_dispatch, workflow_call]
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
context: xrdp
file: xrdp/Dockerfile.ubuntu20.04_core
platforms: linux/amd64,linux/arm64
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/docker-ubuntu-lxde:20.04-core_ja
${{ secrets.DOCKERHUB_USERNAME }}/docker-ubuntu-lxde:focal-core_ja