English Ukrainian
_Awarded via fedmsg rule_: YAML file with rules is present
If you are confused or something is missing, comment on the issue and remove the *ready to push* tag.
Add badge assets to Pagure
Download artwork and rule file (if applicable):
Double-check the artwork is actually the final version from ticket
Open / view both art files to check they are not corrupt (in the past, corrupt images were accidentally pushed)
Give both art and rule files the *same name*, place into https://pagure.io/fedora-badges/blob/master/f/pngs[pngs/], https://pagure.io/fedora-badges/blob/master/f/svgs[svg/], https://pagure.io/fedora-badges/blob/master/f/rules[rules/] directories
_On request only_: Generate a STL file for 3D-printing a badge:
Change directories into `bin/` and run `export.sh`. This creates a STL file for the badge and moves it to the correct place.
Check the `README` file in `bin/` for more info about the script.
Commit all files and push to https://pagure.io/fedora-badges[fedora-badges] (or make a PR)
Make sure files have a reasonable name (e.g. `all-lowercase-dashes-only.png`). Some types of badges follow a naming convention, like FAS group membership badges (i.e. `fas-badge-name.png`) or Koji build badges (i.e. `koji-badge-name.png`). Follow past precedent where possible. Later, the file name is used for the file on the front-end server (e.g. `https://badges.fedoraproject.org/pngs/all-lowercase-dashes-only.png`).
Push assets to back-end server via Ansible
_Note_: All assets must be in the `master` branch of https://pagure.io/fedora-badges[fedora-badges] before proceeding. You must also be a member of `sysadmin-badges` in FAS for this to work.
SSH into `batcave01.iad2.fedoraproject.org`
Enter FAS password and https://docs.pagure.org/infra-docs/sysadmin-guide/sops/2-factor.html[2FA token]
Once finished, ensure badge is now publicly visible (i.e. `https://badges.fedoraproject.org/pngs/<name>.png`)
Add automatically-awarded badges
_Note_: Pay close attention when following these steps. It is easy to create a badge, but much harder to edit it later. Double-check information is entered correctly in the YAML file on first go, or else you have to write SQL statements to fix it later.
Add manually-awarded badges