Skip to content

Commit

Permalink
Merge branch 'master' into feat/registration_rust
Browse files Browse the repository at this point in the history
  • Loading branch information
aldy505 authored Apr 11, 2024
2 parents d802c40 + 5ad1a3b commit a64e07d
Show file tree
Hide file tree
Showing 17 changed files with 3,551 additions and 1,306 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/systems-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,23 @@ jobs:
with:
flags: auth

auth_rust:
name: Auth Rust
runs-on: ubuntu-latest
container: rust:1.77
timeout-minutes: 30
defaults:
run:
working-directory: ./auth_rust
services:
db:
image: redis:7-bookworm
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build
run: cargo build --release

rce:
name: RCE
runs-on: ubuntu-latest
Expand Down Expand Up @@ -245,6 +262,48 @@ jobs:
environment: production
ignore_empty: true

build-auth_rust:
name: Build Auth Rust
runs-on: ubuntu-latest
timeout-minutes: 30
needs:
- auth_rust
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v4

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

- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-auth_rust
flavor: |
latest=false
tags: |
type=edge
type=sha
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: "{{defaultContext}}:auth_rust"
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

build-landing:
name: Build Landing
runs-on: ubuntu-latest
Expand Down
59 changes: 59 additions & 0 deletions .github/workflows/systems-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,23 @@ jobs:
with:
flags: auth

auth_rust:
name: Auth Rust
runs-on: ubuntu-latest
container: rust:1.77
timeout-minutes: 30
defaults:
run:
working-directory: ./auth_rust
services:
db:
image: redis:7-bookworm
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build
run: cargo build --release

rce:
name: RCE
runs-on: ubuntu-latest
Expand Down Expand Up @@ -186,6 +203,48 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

build-auth_rust:
name: Build Auth Rust
runs-on: ubuntu-latest
timeout-minutes: 30
needs:
- auth_rust
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v4

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

- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-auth_rust
flavor: |
latest=false
tags: |
type=ref,event=pr
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: "{{defaultContext}}:auth_rust"
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}


build-landing:
name: Build Landing
runs-on: ubuntu-latest
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/systems-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,45 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

auth_rust:
name: Auth Rust
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v4

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

- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-auth_rust
flavor: |
latest=true
tags: |
type=semver,pattern={{version}}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: "{{defaultContext}}:auth_rust"
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

database:
name: Database
runs-on: ubuntu-latest
Expand Down
16 changes: 16 additions & 0 deletions auth_rust/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
### Rust template
# Generated by Cargo
# will have compiled files and executables
debug/
target/

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
# Cargo.lock

# These are backup files generated by rustfmt
**/*.rs.bk

# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb

16 changes: 16 additions & 0 deletions auth_rust/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
### Rust template
# Generated by Cargo
# will have compiled files and executables
debug/
target/

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
# Cargo.lock

# These are backup files generated by rustfmt
**/*.rs.bk

# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb

Loading

0 comments on commit a64e07d

Please sign in to comment.