Skip to content

Commit

Permalink
Merge pull request #15 from t2vee/t2vee-docker-github-action
Browse files Browse the repository at this point in the history
Docker image built by github actions
  • Loading branch information
hackthedev authored Jun 27, 2024
2 parents 7dd9be2 + edef723 commit d008b12
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 2 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Docker Image CI

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Cache Docker layers
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: ghcr.io/${{ github.repository }}:latest

- name: Build Docker image
run: docker build -t ghcr.io/${{ github.repository }}:latest .

- name: Push Docker image
run: docker push ghcr.io/${{ github.repository }}:latest
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Since you can host the server yourself you're also the one in control of the dat
### Docker
To install via docker you can either clone and build or use the prebuilt image.
```
$ sudo docker run --name dcts-server -p 8080:2052 ghcr.io/t2vee/dcts
$ sudo docker run --name dcts-server -p 8080:2052 ghcr.io/hackthedev/dcts-shipping
```
or via docker-compose:
```
Expand Down
2 changes: 1 addition & 1 deletion docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: "3.9"
services:
dcts:
image: ghcr.io/t2vee/dcts
image: ghcr.io/hackthedev/dcts-shipping
restart: always
volumes:
- dcts:/app/chats
Expand Down

0 comments on commit d008b12

Please sign in to comment.