Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add Dockerfile and workflow
Browse files Browse the repository at this point in the history
Water-Melon committed Nov 2, 2023
1 parent fff539a commit 1960d4a
Showing 2 changed files with 28 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/docker-build-and-push.yml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1960d4a

Please sign in to comment.