Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jaydrogers committed Aug 28, 2024
0 parents commit 602e2cc
Show file tree
Hide file tree
Showing 9 changed files with 1,142 additions and 0 deletions.
Binary file added .github/header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 37 additions & 0 deletions .github/workflows/publish_docker-images-production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Docker Publish

on:
workflow_dispatch:
push:
branches:
- main
schedule:
- cron: '0 8 * * 2'

jobs:

ssh:
uses: ./.github/workflows/service_docker-build-and-publish.yml
with:
tags: "serversideup/proftpd:latest"
secrets: inherit

update_container_readme:
runs-on: ubuntu-20.04
name: Push README to Docker Hub
steps:
- name: git checkout
uses: actions/checkout@v4
with:
ref: main

- name: push README to Dockerhub
uses: christian-korneck/update-container-description-action@v1
env:
DOCKER_USER: ${{ secrets.DOCKER_HUB_README_USERNAME }}
DOCKER_PASS: ${{ secrets.DOCKER_HUB_README_PASSWORD }}
with:
destination_container_repo: serversideup/proftpd
provider: dockerhub
short_description: 'A simple and lightweight mkpasswd image based on Alpine. Great for generating password hashes.'
readme_file: 'README.md'
28 changes: 28 additions & 0 deletions .github/workflows/scheduled-task_update-sponsors.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Generate Sponsors README
on:
workflow_dispatch:
schedule:
- cron: 30 15 * * 0-6
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3

- name: Generate Sponsors 💖
uses: JamesIves/github-sponsors-readme-action@v1
with:
organization: true
maximum: 500
fallback: '<p align="center"><a href="https://github.com/sponsors/serversideup"><img src="https://521public.s3.amazonaws.com/serversideup/sponsors/sponsor-empty-state.png" alt="Sponsors"></a></p>'
token: ${{ secrets.SPONSORS_README_ACTION_PERSONAL_ACCESS_TOKEN }}
marker: 'supporters'
template: '<a href="https://github.com/{{{ login }}}"><img src="https://github.com/{{{ login }}}.png" width="40px" alt="{{{ login }}}" /></a>&nbsp;&nbsp;'
file: 'README.md'

- name: Deploy to GitHub Pages 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: main
folder: '.'
37 changes: 37 additions & 0 deletions .github/workflows/service_docker-build-and-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
on:
workflow_call:
inputs:
tags:
required: true
type: string

jobs:
docker-publish:
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/checkout@v4

- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

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

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

- name: Build and push
uses: docker/build-push-action@v5
with:
context: src/
platforms: |
linux/amd64
linux/arm/v7
linux/arm64/v8
pull: true
push: true
tags: "${{ inputs.tags }}"
19 changes: 19 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Workflow

on:
pull_request: null
push:
branches:
- main

jobs:
actionlint:
name: Actionlint
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Analyze workflow files
uses: docker://rhysd/actionlint:1.7.0
with:
args: "-color -verbose -shellcheck="
Loading

0 comments on commit 602e2cc

Please sign in to comment.