Skip to content

Commit

Permalink
chore: binaries and github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Amninder Kaur committed Aug 11, 2023
1 parent 4f20f47 commit b6b477a
Show file tree
Hide file tree
Showing 43 changed files with 617 additions and 400 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ ADMIN_PG_PASSWORD=admin
ADMIN_PG_DATABASE=postgres

# CONFIG
RUST_LOG=info
RUST_LOG=info
24 changes: 21 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: build

on:
workflow_call:
push:
branches:
- feature/*

jobs:
build:
Expand All @@ -11,8 +13,24 @@ jobs:
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- run: scripts/ubuntu-setup.sh
- run: rustup component add rustfmt clippy
- name: cargo build
run: cargo build
- run: scripts/pre-commit-checks.sh
publish:
runs-on: ubuntu-latest
needs: build
if: needs.build.result == 'success'
steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.AMN_PAT }}

- name: Build the chronos Docker image
run: |
working-directory: ./app
ls -la
# docker build -f Dockerfile.chronos . --tag ghcr.io/kindredgroup/chronos:latest
# docker push ghcr.io/kindredgroup/chronos:latest
Loading

0 comments on commit b6b477a

Please sign in to comment.