diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 87e6c566..c66fa406 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -58,7 +58,7 @@ jobs: sudo adduser runner runner echo "_GID=$(grep -E "^runner:" /etc/group | cut -d: -f3)" >> $GITHUB_ENV - - name: Build image - if not cached + - name: Build image run: | repository=${{ github.repository }} # Verify the cache @@ -74,6 +74,3 @@ jobs: - name: Deploy package run: docker compose run --no-deps client npm run deploy - - - name: Stop containers - run: docker compose down diff --git a/.github/workflows/integrate.yml b/.github/workflows/integrate.yml index 0d075f57..6b3da229 100644 --- a/.github/workflows/integrate.yml +++ b/.github/workflows/integrate.yml @@ -35,7 +35,7 @@ jobs: timeout-minutes: 60 strategy: matrix: - os: [ubuntu-latest] + os: [ubuntu-22.04] steps: - name: Checkout repository uses: actions/checkout@v4 @@ -78,7 +78,7 @@ jobs: sudo adduser runner runner echo "_GID=$(grep -E "^runner:" /etc/group | cut -d: -f3)" >> $GITHUB_ENV - - name: Build images - if not cached + - name: Build images run: | repository=${{ github.repository }} # Verify the cache @@ -91,7 +91,7 @@ jobs: docker compose --progress plain -f docker-compose.yml -f docker-compose.e2e.yml --profile e2e \ build --build-arg uid=$(id -u) --build-arg gid=${_GID} - - name: Setup containers + - name: Prepare containers run: | docker compose run --rm --no-deps -e CI=true client npm clean-install docker compose run --rm --no-deps client ./scripts/setup.sh diff --git a/client-e2e/Dockerfile b/client-e2e/Dockerfile index bdd87d66..fe904eae 100644 --- a/client-e2e/Dockerfile +++ b/client-e2e/Dockerfile @@ -1,4 +1,4 @@ -FROM node:16-alpine +FROM node:16-alpine3.18@sha256:a1f9d027912b58a7c75be7716c97cfbc6d3099f3a97ed84aa490be9dee20e787 # Parameters for default user:group ARG uid=1000