-
Configure Docker Credentials
Add your Docker username and password as environment variables:DOCKER_USERNAMEDOCKER_PASSWORD
-
Update Build Configuration
Modify the project name in thebuild-and-deploy.ymlfile to match your project. -
Set Up Environment Files
- Create
.env.productionand.env.developmentfiles. - Add your environment variables to these files.
- Encrypt the files using the following command:
dotenvx encrypt -r .env.production .env.development
- Create
-
Build and Push to GitHub
Build your project and push the changes to your GitHub repository. -
Deploy to Railway
- Create a new Railway project and select "Docker Image" as the source.
- Copy the private key from
.env.keysand add it as a secret in Railway's environment variables.
MomPansy/FYP
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|