Skip to content

Commit 34d85f4

Browse files
committed
ci: add compoer env and disable dockerhub
1 parent 16130a7 commit 34d85f4

File tree

2 files changed

+24
-23
lines changed

2 files changed

+24
-23
lines changed

.github/workflows/docker-push.yml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -50,29 +50,29 @@ jobs:
5050
subject-digest: ${{ steps.push.outputs.digest }}
5151
push-to-registry: true
5252

53-
push_to_docker_hub:
54-
name: Push Docker image to Docker Hub
55-
runs-on: ubuntu-latest
56-
steps:
57-
- name: Check out the repo
58-
uses: actions/checkout@v2
53+
# push_to_docker_hub:
54+
# name: Push Docker image to Docker Hub
55+
# runs-on: ubuntu-latest
56+
# steps:
57+
# - name: Check out the repo
58+
# uses: actions/checkout@v2
5959

60-
- name: Log in to Docker Hub
61-
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
62-
with:
63-
username: ${{ secrets.DOCKER_USERNAME }}
64-
password: ${{ secrets.DOCKER_PASSWORD }}
60+
# - name: Log in to Docker Hub
61+
# uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
62+
# with:
63+
# username: ${{ secrets.DOCKER_USERNAME }}
64+
# password: ${{ secrets.DOCKER_PASSWORD }}
6565

66-
- name: Extract metadata (tags, labels) for Docker
67-
id: meta
68-
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
69-
with:
70-
images: ${{ secrets.DOCKER_REPOSITORY }}
66+
# - name: Extract metadata (tags, labels) for Docker
67+
# id: meta
68+
# uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
69+
# with:
70+
# images: ${{ secrets.DOCKER_REPOSITORY }}
7171

72-
- name: Build and push Docker image
73-
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
74-
with:
75-
context: .
76-
push: true
77-
tags: ${{ steps.meta.outputs.tags }}
78-
labels: ${{ steps.meta.outputs.labels }}
72+
# - name: Build and push Docker image
73+
# uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
74+
# with:
75+
# context: .
76+
# push: true
77+
# tags: ${{ steps.meta.outputs.tags }}
78+
# labels: ${{ steps.meta.outputs.labels }}

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ FROM php:7.3-cli-alpine
22

33
COPY --from=composer /usr/bin/composer /usr/bin/composer
44
COPY --from=alpine/git /usr/bin/git /usr/bin/git
5+
ENV COMPOSER_MEMORY_LIMIT=-1
56

67
RUN apk add --no-cache zip libzip-dev \
78
&& docker-php-ext-configure zip --with-libzip \

0 commit comments

Comments
 (0)