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