initial commit.

This commit is contained in:
Greyscale 2024-05-18 17:22:19 +02:00
parent e05df09435
commit a995909145
3 changed files with 220 additions and 164 deletions

22
CODE_OF_CONDUCT.md Normal file
View file

@ -0,0 +1,22 @@
# Code of Conduct
This code of conduct outlines our expectations for participants within the open source community. Anyone who violates this code of conduct may be banned from contributing here.
## Requirements
- **Be friendly and patient.**
- **Be welcoming** _We strive to be a community that welcomes and supports people of all backgrounds and identities._
- **Be respectful** _Not all of us will agree all the time, but disagreement is no excuse for poor behavior and poor manners._
## Unacceptable Behaviour
- Offensive comments related to gender, sexual orientation, disability, mental illness, physical appearance, body size, race, age, regional discrimination, political or religious affiliation.
- Threats of violence, both physical and psycological.
- Incitement of violence towards any individual, including encouraging a person to commit suicide or to engage in self-harm.
- Continued communication after requests to cease.
## Interactions
- Don't just tell somebody they are wrong, or what they have done is wrong. You must always explain what is wrong, and why it is wrong.
- Don't reject contributions that are partially complete and then go and commit your own version. Try to work with the author to complete their work.
- We encourage everyone to participate and are committed to building a community for all, we seek to treat everyone both as fairly and equally as possible.

View file

34
action.yml Normal file
View file

@ -0,0 +1,34 @@
name: "Setup Docker Builder"
description: "Sets up a Docker multi-platform builder with GitHub Actions, including logging into the GitHub Container Registry and Docker Hub."
inputs:
ghcr_user:
description: "The GitHub Container Registry user"
required: false
ghcr_token:
description: "The GitHub Container Registry token"
required: false
docker_hub_user:
description: "The Docker Hub user"
required: false
docker_hub_token:
description: "The Docker Hub token"
required: false
runs:
using: "composite"
steps:
- uses: docker/setup-qemu-action@v3
- uses: crazy-max/ghaction-github-runtime@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
if: ${{ inputs.ghcr_user && inputs.ghcr_token }}
with:
registry: ghcr.io
username: ${{ inputs.ghcr_user }}
password: ${{ inputs.ghcr_token }}
- uses: docker/login-action@v3
if: ${{ inputs.docker_hub_user && inputs.docker_hub_token }}
with:
username: ${{ inputs.docker_hub_user }}
password: ${{ inputs.docker_hub_token }}