Skip to content

Commit

Permalink
Merge pull request #1 from slackspace-io/rust
Browse files Browse the repository at this point in the history
Change backend to rust
  • Loading branch information
slackspace-io authored Mar 22, 2024
2 parents f9aab3c + 09b8d36 commit 77fe45b
Show file tree
Hide file tree
Showing 53 changed files with 4,346 additions and 147 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Build and Push Backend Docker Image
name: Build and Push Rust Docker Image

on:
push:
branches:
- main
- rust
paths:
- 'backend/**'
- '.github/workflows/backend.yml'
Expand All @@ -27,4 +27,4 @@ jobs:
context: ./backend
file: ./backend/Dockerfile
push: true
tags: ghcr.io/slackspace-io/slackwatch-be:latest,ghcr.io/slackspace-io/slackwatch-be:dev,ghcr.io/slackspace-io/slackwatch-be:${{ github.sha }}
tags: ghcr.io/slackspace-io/slackwatch-rs:latest,ghcr.io/slackspace-io/slackwatch-rs:dev,ghcr.io/slackspace-io/slackwatch-rs:${{ github.sha }}
1 change: 1 addition & 0 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- rust
paths:
- 'frontend/**'
- '.github/workflows/frontend.yml'
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/old_backend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build and Push Backend Docker Image

on:
push:
branches:
- main
paths:
- 'backend/**'
- '.github/workflows/backend.yml'

jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Check out the code
uses: actions/checkout@v2

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

- name: Log in to GitHub Container Registry
run: docker login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v2
with:
context: ./backend
file: ./backend/Dockerfile
push: true
tags: ghcr.io/slackspace-io/slackwatch-be:latest,ghcr.io/slackspace-io/slackwatch-be:dev,ghcr.io/slackspace-io/slackwatch-be:${{ github.sha }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ dist/
.env.development.local
.env.test.local
.env.production.local
.env*

# IDEs and editors
.vscode/
Expand Down Expand Up @@ -38,3 +39,5 @@ src/node_modules/
docker-compose*.yml
*.dockerignore
**/.dockerignore
/backend/.env.example
/backend/.env.dev
Binary file removed .slackwatch
Binary file not shown.
Loading

0 comments on commit 77fe45b

Please sign in to comment.