Skip to content

feat: add build webtop workflows #3

feat: add build webtop workflows

feat: add build webtop workflows #3

Workflow file for this run

name: build docker
on:
push:
branches: [ 'master' ]
# paths:
# - '**/webtop/Dockerfile'
workflow_dispatch:
env:
owner: chenchongbiao
jobs:
build:
name: Build webtop image
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Checkout repository
uses: actions/checkout@v4
- name: Build images
run: |
cd webtop/debian/gxde
docker buildx build --platform linux/amd64 -t ${{ env.owner }}/webtop:debian-gxde .
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Docker image push
run: |
docker push ${{ env.owner }}/webtop:debian-gxde"