Merge pull request #526 from Asuka109/feat/macos-contributing #1027
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: Build Web | |
on: | |
push: | |
branches: ['master', 'web-prod'] | |
pull_request: | |
branches: ['master'] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.node-version' | |
- name: Retrieve version after install | |
id: nodenv | |
run: echo "node-version=$(node -v | sed 's/^v//')" >> $GITHUB_OUTPUT | |
- uses: redhat-actions/buildah-build@v2 | |
with: | |
image: web | |
layers: false | |
containerfiles: | | |
Dockerfile | |
build-args: NODE_VERSION=${{ steps.nodenv.outputs.node-version }}-slim |