diff --git a/.github/workflows/docker-build-and-push.yml b/.github/workflows/docker-build-and-push.yml new file mode 100644 index 0000000..7a0ed01 --- /dev/null +++ b/.github/workflows/docker-build-and-push.yml @@ -0,0 +1,22 @@ +name: Docker Image CI + +on: + push: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + container: + image: melonc/melon:latest + steps: + - uses: actions/checkout@v3 + - name: Build the Docker image + env: + docker_repo: melonc + image_name: meproc + tag: latest + run: | + docker login --username=${{ secrets.DOCKER_USERNAME }} --password=${{ secrets.DOCKER_PASSWORD }} + docker build . --file Dockerfile --tag $docker_repo/$image_name:$tag + docker push $docker_repo/$image_name:$tag diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..333bddb --- /dev/null +++ b/Dockerfile @@ -0,0 +1,6 @@ +FROM melonc/melon +WORKDIR /root +RUN apt-get update && \ + apt-get -y install git && \ + git clone https://github.com/MelonCTech/Meproc.git +CMD /usr/bin/melang /root/Meproc/meproc.m