Skip to content

Commit

Permalink
update actions and docker-compose
Browse files Browse the repository at this point in the history
 - test docker image in every push
 - update docker-compose redis image
  • Loading branch information
Divkix committed Aug 12, 2022
1 parent 5b0bb35 commit feb45eb
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 6 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,23 @@ jobs:
- name: Build app
run: |-
go build -o out/GigaUserbot -ldflags="-w -s" .
docker-build:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

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

- name: Build and push
id: docker_build
uses: docker/build-push-action@v3
with:
context: .
platforms: linux/amd64,linux/arm64
push: false
cache-from: type=gha
cache-to: type=gha,mode=max
tags: divkix/GIGA-Userbot:latest
19 changes: 13 additions & 6 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,25 @@
version: '3.9'
services:
db:
image: postgres:latest
image: redis:latest
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
networks:
- gigaub
volumes:
- giga-db-data:/data
giga-ub:
image: giga-ub
restart: always
build:
context: .
dockerfile: Dockerfile
links:
- db
depends_on:
- db
networks:
- gigaub

volumes:
giga-db-data:

networks:
gigaub:

0 comments on commit feb45eb

Please sign in to comment.