Skip to content

Commit

Permalink
Create CI/CD workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
judahpaul16 committed May 16, 2024
1 parent 3a096df commit fd9eb1f
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: CI/CD Pipeline

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Build and push
run: |
docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/www-clear-badge-cache:latest --push .
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
[![Go Report Card](https://goreportcard.com/badge/github.com/judahpaul16/www-clear-badge-cache)](https://goreportcard.com/report/github.com/judahpaul16/www-clear-badge-cache)
[![GitHub](https://img.shields.io/github/license/judahpaul16/clear-badge-cache)](LICENSE)
[![Website](https://img.shields.io/badge/website-https://clear--badge--cache.com-blue)](https://clear-badge-cache.com/)
[![Docker Pulls](https://img.shields.io/docker/pulls/judahpaul/www-clear-badge-cache)](https://hub.docker.com/r/judahpaul/www-clear-badge-cache)
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/judahpaul16/www-clear-badge-cache/CI)](https://github.com/judahpaul16/www-clear-badge-cache/actions)

[Clear-Badge-Cache.com](https://clear-badge-cache.com/) is a web-based tool designed to make it easier to clear the cache for GitHub badge images by providing a simple and intuitive user interface. This tool is based on the [Clear Badge Cache CLI tool](https://github.com/judahpaul16/clear-badge-cache) but adds a user-friendly web interface for the same functionality.

Expand All @@ -14,6 +16,12 @@

## Quick Start 🚀

```bash
docker rm -f www-clear-badge-cache
docker pull judahpaul16/www-clear-badge-cache:latest
docker run -d -p 8080:8080 judahpaul16/www-clear-badge-cache:latest
```

### Prerequisites 📋

- [Go](https://go.dev/dl/)
Expand Down

0 comments on commit fd9eb1f

Please sign in to comment.