feat: Add multistage Dockerfiles and update package configurations fo… #5
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: Feelpp VSCode Container | |
| on: | |
| push: | |
| paths: | |
| - 'feelpp-toolboxes/**' | |
| - 'feelpp-toolboxes-dev/**' | |
| - 'feelpp-mor/**' | |
| - 'feelpp-mor-dev/**' | |
| - '.github/workflows/vscode.yml' | |
| - 'feelpp-vscode/**' | |
| jobs: | |
| activate: | |
| runs-on: self-docker | |
| if: | | |
| github.repository == 'feelpp/docker' && | |
| !startsWith(github.event.head_commit.message, 'Release ') && | |
| !contains(github.event.head_commit.message, 'ci skip') | |
| steps: | |
| - run: echo ok go | |
| deliver: | |
| if: "!contains(github.event.head_commit.message, 'deliver skip')" | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - {service: feelpp-vscode, dist: focal, flavor: ubuntu, version: 20.04, tag: ubuntu-20.04, dockerfile: Dockerfile } | |
| runs-on: self-docker | |
| needs: activate | |
| name: ${{ matrix.dist }} Build and Push Docker | |
| steps: | |
| - uses: actions/checkout@v2.3.4 | |
| with: | |
| # lfs: true | |
| token: ${{ secrets.CR_PAT }} | |
| submodules: recursive | |
| - | |
| name: Set up QEMU | |
| uses: docker/setup-qemu-action@v1 | |
| - | |
| name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v1 | |
| - | |
| name: Login to GitHub Container Registry | |
| uses: docker/login-action@v1 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.repository_owner }} | |
| password: ${{ secrets.CR_PAT }} | |
| - | |
| name: Build ${{ matrix.service }}:${{ matrix.tag }} | |
| uses: docker/build-push-action@v2 | |
| with: | |
| context: ./feelpp-vscode | |
| tags: ghcr.io/feelpp/${{ matrix.service }}:${{ matrix.tag }} | |
| file: feelpp-vscode/${{ matrix.dockerfile }} | |
| load: true | |
| - | |
| name: Push ${{ matrix.service }}:${{ matrix.tag }} | |
| run: | | |
| docker push ghcr.io/feelpp/${{ matrix.service }}:${{ matrix.tag }} |