sim0n00ps / OF-DL

C# console app to download all of the media from Onlyfans accounts with DRM video downloading support
575 stars 55 forks source link

Use GitHub actions to publish docker images #295

Closed whimsical-c4lic0 closed 4 months ago

whimsical-c4lic0 commented 4 months ago

This PR adds a GitHub Actions workflow to automatically publish docker images to GitHub Container Registry (ghcr) when a new release tag is pushed. Whenever a tag is pushed with the OFDLV prefix, a docker image is built and pushed to both the latest tag and the version tag. For example, if the OFDLV1.9.3 tag is pushed, ghcr.io/sim0n00ps/of-dl:latest and ghcr.io/sim0n00ps/of-dl:1.9.3 will be pushed to ghcr.

Unless you've changed the repository's GitHub Actions settings to non-default values, only one setting will need to be updated to support this PR. On the Actions (General) page, under Workflow permissions, be sure that Read and write permissions is selected. This will ensure that the GITHUB_TOKEN used by the workflow has permission to write to your packages.