Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Debug #235

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 6 additions & 21 deletions .github/workflows/docker_gcr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@ on:
- 'Dockerfile'
- 'docker/**'
- 'composer.lock'
- '.github/workflows/docker_gcr.yaml'
branches:
- master
- debug-composer

workflow_dispatch:

jobs:
Expand All @@ -25,30 +28,12 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Cache Docker layers
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-gcr-docker

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push Docker image to GitHub Container Registry
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ghcr.io/${{ github.repository }}:latest
tags: ghcr.io/vtsykun/cron-bundle:latest
platforms: linux/amd64
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max

- name: Move cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
cache-from: type=gha,scope=${{ github.workflow }}
cache-to: type=gha,scope=${{ github.workflow }},mode=max
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@ RUN composer install --no-interaction --no-suggest --no-dev --no-scripts && \

COPY --chown=82:82 . /var/www/packagist/

RUN set -eux; ls -la / && \
printenv && \
echo "--- cgroup test --" && \
cat /proc/1/cgroup && \
echo "--- mountinfo test --" && \
cat /proc/self/mountinfo


RUN composer run-script auto-scripts && \
mkdir var/composer var/zipball && \
rm -rf /root/.composer var/cache
Expand Down
Loading