| 1 | name: In a container |
| 2 | on: push |
| 3 | jobs: |
| 4 | build: |
| 5 | runs-on: ubuntu-latest |
| 6 | container: |
| 7 | image: ghcr.io/example/builder:1.4 |
| 8 | credentials: |
| 9 | username: ${{ github.actor }} |
| 10 | password: ${{ secrets.GITHUB_TOKEN }} |
| 11 | env: |
| 12 | NODE_ENV: development |
| 13 | ports: |
| 14 | - 80 |
| 15 | volumes: |
| 16 | - my_docker_volume:/volume_mount |
| 17 | options: --cpus 1 |
| 18 | services: |
| 19 | cache: |
| 20 | image: memcached:1.6 |
| 21 | command: ["memcached", "-m", "64"] |
| 22 | entrypoint: /usr/local/bin/docker-entrypoint.sh |
| 23 | steps: |
| 24 | - uses: actions/checkout@v4 |
| 25 | - run: make |
| 26 | short-container: |
| 27 | runs-on: ubuntu-latest |
| 28 | container: node:22-bookworm |
| 29 | steps: |
| 30 | - run: node --version |