Run on Custom Docker Container #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Run on Custom Docker Container | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| custom-container-job: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: docker.io/library/maven:3.9.6 | |
| #options: --user 1001 # optional: run as specific user | |
| env: | |
| CUSTOM_ENV: "production" | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Show current user | |
| run: whoami | |
| - name: package | |
| run: mvn package |