Skip to content

Commit

Permalink
Merge branch 'release/1.0.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
agung2001 committed Nov 27, 2022
2 parents f873771 + 962a672 commit 7bf3ee6
Show file tree
Hide file tree
Showing 3 changed files with 105 additions and 16 deletions.
76 changes: 76 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: Create and publish a Docker image

on:
push:
branches:
- master
- feature/packages
tags:
- '*'

env:
IMAGE_NAME: ${{ github.repository }}

jobs:
docker-hub:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

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

- name: Login to Docker Hub
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.IMAGE_NAME }}

- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

github-package:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

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

- name: Log in to the Container registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ env.IMAGE_NAME }}

- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
33 changes: 21 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
![Screenshot](screenshot.png)

My GitHub profile page. You can change the configuration of the page by changing [config.json](config.json) file and run the install.
See the [demo][website]
See the [demo][website].

![Stars](https://img.shields.io/github/stars/agung2001/agung2001.github.io?style=social)
![Size](https://img.shields.io/github/repo-size/agung2001/agung2001.github.io)
![Pulls](https://img.shields.io/docker/pulls/agung2001/agung2001.github.io)
![Image Size](https://img.shields.io/docker/image-size/agung2001/agung2001.github.io)
![Version](https://img.shields.io/docker/v/agung2001/agung2001.github.io)

## 🤖 Installation
### via docker run
`
docker run -d -p 80:80
--name agung2001.github.io
-v /path/to/config.json:/usr/share/nginx/html/config.json
agung2001/agung2001.github.io:1.0.0
`
- NOTE: Don't forget to change the `/path/to/config.json` accordingly
### via docker run
```
docker run -d -p 80:80 \
--name agung2001.github.io \
-v /path/to/config.json:/usr/share/nginx/html/config.json \
-v /path/to/avatar.jpg:/usr/share/nginx/html/assets/img/avatar.jpg \
-v /path/to/cover.jpg:/usr/share/nginx/html/assets/img/cover.jpg \
agung2001/agung2001.github.io:master
```
- NOTE: Don't forget to change the `/path/to/` accordingly

### via manual build
- Install node package `npm i`
Expand All @@ -21,7 +29,7 @@ docker run -d -p 80:80
## 🔥 Development
- Rename `.env-sample` to `.env`
- Change `.env` according to your environment
- Docker `docker-compose up --build`
- Docker `docker-compose up`

## ⚒️ Built with
- [Animate.style](https://animate.style/)
Expand All @@ -33,8 +41,9 @@ docker run -d -p 80:80

## 📚 Resources
- [Github](https://github.com/agung2001/agung2001.github.io)
- [Docker Hub](https://hub.docker.com/r/agung2001/agung2001.github.io)
- [Wiki](https://github.com/agung2001/agung2001.github.io/wiki/)
- Registry
- [Docker Hub](https://hub.docker.com/r/agung2001/agung2001.github.io)
- [GHCR](https://github.com/agung2001/agung2001.github.io/pkgs/container/agung2001.github.io)

## ⭐️ Support
Help support me by giving a star or [donate][website]
Expand Down
12 changes: 8 additions & 4 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -189,16 +189,20 @@
"https://cdn.jsdelivr.net/gh/devicons/devicon/icons/vscode/vscode-original.svg",
"https://cdn.jsdelivr.net/gh/devicons/devicon/icons/jetbrains/jetbrains-original.svg",
"https://cdn.jsdelivr.net/gh/devicons/devicon/icons/git/git-original.svg",
"https://cdn.jsdelivr.net/gh/devicons/devicon/icons/subversion/subversion-original.svg"
"https://cdn.jsdelivr.net/gh/devicons/devicon/icons/subversion/subversion-original.svg",
"https://cdn.jsdelivr.net/gh/devicons/devicon/icons/grunt/grunt-original.svg",
"https://cdn.jsdelivr.net/gh/devicons/devicon/icons/webpack/webpack-original.svg"
]
},
{
"label": "Build",
"label": "Infrastructure",
"tools": [
"https://cdn.jsdelivr.net/gh/devicons/devicon/icons/linux/linux-original.svg",
"https://cdn.jsdelivr.net/gh/devicons/devicon/icons/docker/docker-original.svg",
"https://cdn.jsdelivr.net/gh/devicons/devicon/icons/grunt/grunt-original.svg",
"https://cdn.jsdelivr.net/gh/devicons/devicon/icons/webpack/webpack-original.svg"
"https://cdn.jsdelivr.net/gh/devicons/devicon/icons/digitalocean/digitalocean-original.svg",
"https://cdn.jsdelivr.net/gh/devicons/devicon/icons/amazonwebservices/amazonwebservices-original.svg",
"https://cdn.jsdelivr.net/gh/devicons/devicon/icons/googlecloud/googlecloud-original.svg",
"https://cdn.jsdelivr.net/gh/devicons/devicon/icons/firebase/firebase-plain.svg"
]
}
]
Expand Down

0 comments on commit 7bf3ee6

Please sign in to comment.