Skip to content

Commit

Permalink
Merge pull request #3 from baldator/main
Browse files Browse the repository at this point in the history
Add github action to build docker image and docker-compose support
  • Loading branch information
remvze authored Jan 1, 2024
2 parents 1218751 + 64ef5c5 commit 210bd23
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build_docker.yml
Original file line number Diff line number Diff line change
@@ -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##*/}
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: '3.9'
services:
remvze:
image: ghcr.io/remvze/moodist
logging:
options:
max-size: 1g
restart: always
ports:
- '8080:8080'

0 comments on commit 210bd23

Please sign in to comment.