Skip to content

remove postbuild from gitignore #10

remove postbuild from gitignore

remove postbuild from gitignore #10

Workflow file for this run

name: Rebuild containers
on:
pull_request:
push:
branches:
- master
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: false
matrix:
container: [
"clang-cross",
"llvm-mingw",
"mingw",
]
runs-on: ubuntu-latest
steps:
- name: Checkout (GitHub)
uses: actions/checkout@v3
- name: Fixup Cookie Cutter Names
run: |
mv "{{ cookiecutter.__project_slug }}/" project
find -name "{% if *" -type f \
| perl -pe 'print $_; s/\{% if cookiecutter\.\w+ %\}(.+?)\{% endif %\}/$1/' \
| xargs -d "\n" -n2 mv
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build container
uses: devcontainers/[email protected]
with:
imageName: ghcr.io/bl-sdk/${{ matrix.container }}
cacheFrom: ghcr.io/bl-sdk/${{ matrix.container }}
configFile: "project/.devcontainer/${{ matrix.container }}/devcontainer.json"
push: always