From 64ef5c5138ae535971b97f9f1628517d169a05a0 Mon Sep 17 00:00:00 2001 From: marco Date: Sun, 31 Dec 2023 13:43:27 +0000 Subject: [PATCH] . --- .github/workflows/build_docker.yml | 27 +++++++++++++++++++++++++++ docker-compose.yml | 10 ++++++++++ 2 files changed, 37 insertions(+) create mode 100644 .github/workflows/build_docker.yml create mode 100644 docker-compose.yml diff --git a/.github/workflows/build_docker.yml b/.github/workflows/build_docker.yml new file mode 100644 index 0000000..fcb7209 --- /dev/null +++ b/.github/workflows/build_docker.yml @@ -0,0 +1,27 @@ +name: Build and push main image + +on: + push: + branches: + - main + - dev + +jobs: + push-store-image: + runs-on: ubuntu-latest + + steps: + - name: 'Checkout GitHub Action' + uses: actions/checkout@main + + - name: 'Login to GitHub Container Registry' + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{github.actor}} + password: ${{secrets.GITHUB_TOKEN}} + + - name: 'Build Inventory Image' + run: | + docker build . --tag ghcr.io/${GITHUB_REPOSITORY}:${GITHUB_REF##*/} + docker push ghcr.io/${GITHUB_REPOSITORY}:${GITHUB_REF##*/} \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..7e5b0bc --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,10 @@ +version: '3.9' +services: + remvze: + image: ghcr.io/remvze/moodist + logging: + options: + max-size: 1g + restart: always + ports: + - '8080:8080' \ No newline at end of file