Skip to content

ci(deps): bump node from 16.14.2-slim to 23.2.0-slim in /docker #1443

ci(deps): bump node from 16.14.2-slim to 23.2.0-slim in /docker

ci(deps): bump node from 16.14.2-slim to 23.2.0-slim in /docker #1443

Workflow file for this run

name: Container - Test
on:
push:
branches-ignore: [stable]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
container-test:
runs-on: ubuntu-latest
strategy:
matrix:
db_type:
- mongodb
- postgresql
- mariadb
- file
steps:
- uses: actions/checkout@v4
- name: Set up metadata
id: pkg_meta
run: |
echo "::set-output name=package_scope::@awesome-database-backup/awesome-${{ matrix.db_type }}-backup"
echo "::set-output name=package_path::apps/awesome-${{ matrix.db_type }}-backup"
echo "::set-output name=package_image_name::weseek/awesome-${{ matrix.db_type }}-backup"
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Cache Docker layers
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key:
${{ runner.os }}-buildx-app-${{ matrix.db_type }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-app-${{ matrix.db_type }}-
${{ runner.os }}-buildx-app-
- name: Build container (No push)
uses: docker/build-push-action@v5
with:
context: .
file: ./docker/Dockerfile
platforms: linux/amd64
load: true
build-args: |
packageScope=${{ steps.pkg_meta.outputs.package_scope }}
packagePath=${{ steps.pkg_meta.outputs.package_path }}
dbType=${{ matrix.db_type }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
tags: ${{ steps.pkg_meta.outputs.package_image_name }}:latest
# ref: https://github.com/docker/build-push-action/blob/master/docs/advanced/cache.md#local-cache
# :warning: At the moment caches are copied over the existing cache so it [keeps growing](https://github.com/docker/build-push-action/issues/252).
# The `Move cache` step is used as a temporary fix (see https://github.com/moby/buildkit/issues/1896).
- name: Move cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
- name: Run structure tests
uses: brpaz/[email protected]
with:
image: ${{ steps.pkg_meta.outputs.package_image_name }}:latest
configFile: ./docker/test/${{ matrix.db_type }}/structure-tests.yml