Skip to content

Commit

Permalink
Update the repository from the origin branch (#1)
Browse files Browse the repository at this point in the history
* feat: atempt on fixing permissions error while deploy on stage

* feat: add dk as author

* Update pythonbrad info (osscameroon#23)

* Correct pythonbrad name

* Update pythonbrad.md

* chore: update github actions packages (osscameroon#26)

* chore: update github actions packages

* chore: rename action workflows

* chore: rename action workflows (osscameroon#27)

---------

Co-authored-by: sanix-darker <[email protected]>
Co-authored-by: Brady Fomegne <[email protected]>
  • Loading branch information
3 people authored May 1, 2024
1 parent 48587a9 commit 2e33462
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 17 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/deploy-blog-in-prod.yaml
Original file line number Diff line number Diff line change
@@ -1,41 +1,45 @@
name: Build the blog image and deploy
name: Build and Deploy Prod Image

on:
push:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
build-and-push-prod:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Log in to the Container registry
uses: docker/login-action@v2
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@v3
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=sha,enable=true,priority=100,prefix=,suffix=,format=long
- name: Build and push Docker image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: .
build-args: |
Expand Down
21 changes: 12 additions & 9 deletions .github/workflows/deploy-blog-in-stage.yaml
Original file line number Diff line number Diff line change
@@ -1,40 +1,43 @@
name: Build the blog image and deploy in the stage environment
name: Build and Deploy Staging Image

on:
pull_request:
branches: [ main ]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
build-and-push-prod:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
permissions: write-all

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Log in to the Container registry
uses: docker/login-action@v2
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@v3
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=sha,enable=true,priority=100,prefix=,suffix=,format=long
- name: Build and push Docker image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: .
build-args: |
Expand Down
4 changes: 3 additions & 1 deletion data/authors/pythonbrad.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
name: Python Brad
name: pythonbrad
avatar: /static/images/authors/pythonbrad.jpg
occupation: OpenSource developer
twitter: https://twitter.com/pythonbrad
github: https://github.com/pythonbrad
---
8 changes: 8 additions & 0 deletions data/authors/sanix-darker.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
name: Sanix Darker
avatar: /static/images/authors/avatar.png
occupation: Backend Engineer
email: [email protected]
twitter: https://twitter.com/sanixdarker
github: https://github.com/sanix-darker
---
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,6 @@
"*.+(js|jsx|ts|tsx|json|css|md|mdx)": [
"prettier --write"
]
}
},
"packageManager": "[email protected]"
}

0 comments on commit 2e33462

Please sign in to comment.