Skip to content

Commit

Permalink
dev2main (#1)
Browse files Browse the repository at this point in the history
* WIP

* wip

* wip

* add helm

* show real sat amount

* show new zaps on top

* load nostr usernames

* show the last 10 zaps when page loaded

* add github actions

---------

Co-authored-by: mroxso <[email protected]>
  • Loading branch information
mroxso and mroxso authored Jun 25, 2023
1 parent 146b45e commit 1db7a68
Show file tree
Hide file tree
Showing 10 changed files with 2,166 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/docker-image-beta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: BETA Docker Build and Push

on:
workflow_dispatch:
push:
branches:
- beta

jobs:
build_and_push:
name: Build and Push
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

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

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
id: docker_build
uses: docker/build-push-action@v4
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: ghcr.io/${{ github.repository_owner }}/zaps:beta

- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
47 changes: 47 additions & 0 deletions .github/workflows/docker-image-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Docker Image Release
on:
workflow_dispatch:
release:
types:
- published

env:
REGISTRY_NAME: ghcr.io
IMAGE_NAME: zaps

jobs:
image:
name: Building and Pushing the Docker Image
runs-on: "ubuntu-latest"
steps:
- name: Git Checkout
uses: actions/checkout@v3

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Setup QEMU
uses: docker/setup-qemu-action@v2

- name: Setup Buildx
uses: docker/setup-buildx-action@v2

- name: Collecting Metadata
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY_NAME }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}

- name: Building And Pushing Image
uses: docker/build-push-action@v3
with:
context: .
file: ./Dockerfile
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
40 changes: 40 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Docker Build and Push

on:
workflow_dispatch:
push:
branches:
- main

jobs:
build_and_push:
name: Build and Push
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

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

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
id: docker_build
uses: docker/build-push-action@v4
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: ghcr.io/${{ github.repository_owner }}/zaps:latest

- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM php:apache

COPY . /var/www/html

RUN a2enmod rewrite

EXPOSE 80

CMD ["apache2-foreground"]
12 changes: 12 additions & 0 deletions HELM.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Helm Installation

## Installation
```bash
helm repo add bitnami https://charts.bitnami.com/bitnami
```
```bash
helm install my-nginx bitnami/nginx --version 15.0.2 --values custom-values.yaml
```

## Source
https://artifacthub.io/packages/helm/bitnami/nginx
Loading

0 comments on commit 1db7a68

Please sign in to comment.