Add a few more Dockerfiles #24
Workflow file for this run
This file contains 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: Get A Shell CI | |
on: | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Build | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
- name: Install packages | |
run: npm ci | |
- name: Build | |
run: npm run build | |
list-changed-dockerfiles: | |
needs: build | |
runs-on: ubuntu-latest | |
name: Detect changed Dockerfiles | |
outputs: | |
matrix: ${{ steps.list-changed-dockerfiles.outputs.all_changed_files }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Get changed Dockerfiles | |
uses: tj-actions/changed-files@v44 | |
id: list-changed-dockerfiles | |
with: | |
files: dockerfiles/Dockerfile.* | |
matrix: true | |
build-dockerfiles: | |
needs: [list-changed-dockerfiles] | |
runs-on: ubuntu-latest | |
name: Build Dockerfiles | |
strategy: | |
fail-fast: false | |
max-parallel: 4 | |
matrix: | |
files: ${{ fromJson(needs.list-changed-dockerfiles.outputs.matrix) }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build Docker image for ${{ matrix.files }} | |
run: docker build -f ${{ matrix.files }} . | |
build-get-a-shell-dockerfile: | |
needs: [build-dockerfiles] | |
runs-on: ubuntu-latest | |
name: Build GetAShell Dockerfile | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build Docker image | |
run: docker build -f Dockerfile . |