Update node to 20.15.0 #53
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 Image | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
permissions: | |
packages: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- image: asdf | |
tag_suffix: '' | |
- image: node-playwright | |
tag_suffix: '-node-20.15' | |
args: '--build-arg NODE_VERSION=20.15.1' | |
- image: ruby-postgres | |
tag_suffix: '-ruby-3.2.2-postgres-16.1' | |
args: '--build-arg RUBY_VERSION=3.2.2 --build-arg POSTGRES_VERSION=16.1' | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dorny/paths-filter@v3 | |
id: filter | |
with: | |
filters: | | |
image: | |
- 'build-images/${{ matrix.image }}.Dockerfile' | |
- 'build-images/${{ matrix.image }}/**' | |
- '.github/workflows/build.yml' | |
- run: >- | |
docker build | |
-t ghcr.io/code0-tech/build-images/${{ matrix.image }}:${{ github.run_number }}.${{ github.run_attempt }}${{ matrix.tag_suffix }} | |
-f build-images/${{ matrix.image }}.Dockerfile | |
${{ matrix.args }} | |
. | |
if: steps.filter.outputs.image == 'true' | |
- run: echo ${{ secrets.GITHUB_TOKEN }} | docker login -u $ --password-stdin ghcr.io | |
name: Login to registry | |
if: ${{ (github.event_name == 'push' && steps.filter.outputs.image == 'true') || github.event_name == 'workflow_dispatch' }} | |
- run: docker push ghcr.io/code0-tech/build-images/${{ matrix.image }}:${{ github.run_number }}.${{ github.run_attempt }}${{ matrix.tag_suffix }} | |
if: ${{ (github.event_name == 'push' && steps.filter.outputs.image == 'true') || github.event_name == 'workflow_dispatch' }} |