|
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 11s
Add comprehensive documentation for setting up the personal access token required for the Forgejo Actions CI/CD pipeline to push Docker images to the container registry. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .claude | ||
| .forgejo/workflows | ||
| assets | ||
| config | ||
| lib | ||
| priv | ||
| test | ||
| .dockerignore | ||
| .env.example | ||
| .formatter.exs | ||
| .gitignore | ||
| .tool-versions | ||
| AGENTS.md | ||
| docker-compose.yml | ||
| DOCKER_README.md | ||
| Dockerfile | ||
| entrypoint.sh | ||
| mix.exs | ||
| mix.lock | ||
| README.md | ||
MyFirstElixirVibeCode
To start your Phoenix server:
- Run
mix setupto install and setup dependencies - Start Phoenix endpoint with
mix phx.serveror inside IEx withiex -S mix phx.server
Now you can visit localhost:4000 from your browser.
Ready to run in production? Please check our deployment guides.
Docker Deployment
See DOCKER_README.md for instructions on running the application with Docker Compose.
CI/CD Setup
This project uses Forgejo Actions for continuous integration and deployment. The workflow automatically builds and pushes Docker images to the Forgejo container registry on every push to the main branch.
Setting up the FORGEJO_TOKEN Secret
To enable the CI/CD pipeline to push Docker images to the container registry, you need to create a personal access token and add it as a repository secret:
-
Create a Personal Access Token:
- Go to your Forgejo instance and log in
- Click your profile icon → Settings
- Click Applications in the left sidebar
- Scroll to Generate New Token
- Give it a name (e.g., "GitHub Actions" or "CI/CD")
- Check the following permissions:
- ✅ write:package (required to push to container registry)
- ✅ read:package (required to pull from container registry)
- Click Generate Token
- Copy the token (you won't be able to see it again!)
-
Add the Token as a Repository Secret:
- Go to your repository in Forgejo
- Click Settings → Secrets
- Click Add secret
- Set Name:
FORGEJO_TOKEN - Set Value: Paste the token you copied
- Click Add secret
Once configured, the workflow will automatically build and push Docker images on every push to main.
Learn more
- Official website: https://www.phoenixframework.org/
- Guides: https://hexdocs.pm/phoenix/overview.html
- Docs: https://hexdocs.pm/phoenix
- Forum: https://elixirforum.com/c/phoenix-forum
- Source: https://github.com/phoenixframework/phoenix