Skip to content
Merged
24 changes: 12 additions & 12 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,33 @@ on:
- main
- dev
tags:
- 'v*'
- "v*"
pull_request:
branches:
- main
workflow_dispatch: # Allows manual trigger
workflow_dispatch:

env:
DOCKER_IMAGE: ${{secrets.DOCKER_USERNAME}}/rust-nigeria-website
DOCKER_IMAGE: ${{ secrets.DOCKER_USERNAME }}/rust-nigeria-website

jobs:
build-and-push:
runs-on: ubuntu-latest
environment: production

steps:
- name: Checkout code
uses: actions/checkout@v4

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

- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}

- name: Extract metadata (tags, labels)
id: meta
uses: docker/metadata-action@v5
Expand All @@ -43,9 +43,9 @@ jobs:
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=sha,prefix={{branch}}-
type=sha,prefix=sha-
type=raw,value=latest,enable={{is_default_branch}}

- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
Expand All @@ -61,11 +61,11 @@ jobs:
platforms: linux/amd64
build-args: |
BUILDKIT_INLINE_CACHE=1

- name: Image digest
run: echo ${{ steps.meta.outputs.digest }}

- name: Trigger Render Deploy
run: curl -f "$RENDER_HOOK" || exit 1
env:
RENDER_HOOK: ${{ secrets.RENDER_HOOK }}
run: curl -f "$RENDER_HOOK" || exit 1
25 changes: 25 additions & 0 deletions data/projects.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,30 @@
"repo_url": "https://github.com/ahkohd/oyo",
"banner": "https://opengraph.githubassets.com/1/ahkohd/oyo",
"tags": ["crate"]
},
{
"repo_url": "https://github.com/opeolluwa/almonds",
"banner": "https://opengraph.githubassets.com/1/opeolluwa/almonds",
"tags": ["tauri"]
},
{
"repo_url": "https://github.com/Zfinix/another",
"banner": "https://opengraph.githubassets.com/1/Zfinix/another",
"tags": ["tauri"]
},
{
"repo_url": "https://github.com/dev-davexoyinbo/trypema",
"banner": "https://opengraph.githubassets.com/1/dev-davexoyinbo/trypema",
"tags": ["crate", "distributed_system", "rate_limiting"]
},
{
"repo_url": "https://github.com/dev-davexoyinbo/distkit",
"banner": "https://opengraph.githubassets.com/1/dev-davexoyinbo/distkit",
"tags": ["crate", "distributed_system"]
},
{
"repo_url": "https://github.com/dev-davexoyinbo/actix-web-starter-template",
"banner": "https://opengraph.githubassets.com/1/dev-davexoyinbo/actix-web-starter-template",
"tags": ["template"]
}
]
8 changes: 8 additions & 0 deletions src/types/projects.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ pub enum ProjectTags {
Blockchain,
Leptos,
Crate,
Tauri,
DistributedSystem,
RateLimiting,
Template,
}

impl fmt::Display for ProjectTags {
Expand All @@ -21,6 +25,10 @@ impl fmt::Display for ProjectTags {
ProjectTags::Blockchain => "Blockchain",
ProjectTags::Leptos => "Leptos",
ProjectTags::Crate => "Crate",
ProjectTags::Tauri => "Tauri",
ProjectTags::DistributedSystem => "Distributed System",
ProjectTags::RateLimiting => "Rate Limiting",
ProjectTags::Template => "Template",
};
write!(f, "{}", s)
}
Expand Down
Loading