Skip to content

Commit

Permalink
Gamma 2.0 and migrate to Rust (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
GAsplund authored Jul 2, 2024
1 parent 3689563 commit 6a88f24
Show file tree
Hide file tree
Showing 12 changed files with 1,383 additions and 231 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.env*
68 changes: 68 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: "Continuous Integration"

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
docker:
name: Docker
runs-on: ubuntu-latest

permissions:
packages: write

steps:
- uses: actions/checkout@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry
if: ${{ github.ref == 'refs/heads/master' }}
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
file: ./Dockerfile
push: ${{ github.ref == 'refs/heads/master' }}
tags: ghcr.io/cthit/chalmers-ldap-gamma-sync:latest

lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add clippy
- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings

format:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
node_modules
/target
Loading

0 comments on commit 6a88f24

Please sign in to comment.