Blair2004 / NexoPOS

The base version of NexoPOS, which is a web-Based Point Of Sale (POS) System build with Laravel, TailwindCSS, and Vue.Js.
https://my.nexopos.com
GNU General Public License v3.0
893 stars 371 forks source link

Added Docker #2060

Closed kemboi22 closed 1 month ago

kemboi22 commented 1 month ago

** Currently supports queues

what-the-diff[bot] commented 1 month ago

PR Summary

kemboi22 commented 1 month ago

When pushing to Docker hub Add the following github workflow

name: Build and Push Multi-Platform Docker Image

on:
  push:
    branches:
      - main
  workflow_dispatch:

jobs:
  build-and-push:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout Repository
        uses: actions/checkout@v3

      - name: Set up Docker Buildx
        uses: docker/setup-buildx-action@v3

      - name: Log in to Docker Hub
        uses: docker/login-action@v3
        with:
          username: ${{ secrets.DOCKER_HUB_USERNAME }}
          password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

      - name: Build and push
        uses: docker/build-push-action@v6
        with:
          tags: dockerhubusername/imagename:version
          push: true

      # No need to manually tag or push, it's handled in the build command above

Add the following secrets to your settings

this will enable github to auto push to github upon pushing

Blair2004 commented 1 month ago

Hi, Unfortunately,this repo shouldn't be based with files people might not use. Not everyone will use docker, but at least everyone will use all NexoPOS internal files. Provide a repository for this Docker integration and we'll be glad to reference it in our documentation my.nexopos.com/en/documentation.

Thank you for your contribution.

kemboi22 commented 1 month ago

Okay suure