Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
evl-8 committed Dec 1, 2024
1 parent 3ce933c commit 0fd3c7f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
4 changes: 3 additions & 1 deletion assignments/exercise-1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
ABCDEFIGHIJKLMNOPQRSTUVW12345` extracts to
`Url: https://github.com/evl-8/github-action-demo` and
`Token: ABCDEFIGHIJKLMNOPQRSTUVW12345`
5. Run the command <br> `docker run --name github-actions-runner -e URL=<url> -e TOKEN=<token> evl8/github-actions-runner`
5. Go into the cloned `esd-github-actions-assignment` and open the `docker-compose.yml`
6. Follow the instructions inside the file
7. Run `docker compose up`

You have now created a Github actions runner!
It should look like the picture beneath.
Expand Down
15 changes: 12 additions & 3 deletions assignments/exercise-3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,26 @@ In this job, we will upload our final Jar to a nexus repository server
- Setup Java 17
- Download the results from the previous job
- Execute `./gradlew publish` and add ```env:
ORG_GRADLE_PROJECT_dockerRepoUsername: ${{ secrets.REPO_USERNAME }}
ORG_GRADLE_PROJECT_dockerRepoPassword: ${{ secrets.REPO_PASSWORD }}```
- Execute `./gradlew publish`
```
env:
ORG_GRADLE_PROJECT_dockerRepoUsername: ${{ secrets.REPO_USERNAME }}
ORG_GRADLE_PROJECT_dockerRepoPassword: ${{ secrets.REPO_PASSWORD }}
```
## Making a pull request
### Requirements
Edit the workflow so that:
- The workflow should run when pushing on branch "prod", "dev" and "stage"
- The workflow should run when making a pull request on branch "prod", "dev" and "stage"
After that:
- Create a pull request from `dev` into `stage`
- Wait for all Github actions and `Merge pull request`
- Do the same for `stage` into prod
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ services:
github-actions-runner:
image: evl8/esd-github-actions-runner
environment:
- URL=value
- TOKEN=value
- URL=<replace this with your repository url>
- TOKEN=<replace this with your repository token>
networks:
- esd
nexus:
Expand Down

0 comments on commit 0fd3c7f

Please sign in to comment.