Skip to content

Commit

Permalink
feat: Build OCI images
Browse files Browse the repository at this point in the history
  • Loading branch information
ronisaha committed Jul 1, 2024
1 parent 77d71bc commit c73187d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: false
matrix:
image-variant: [ 'apache', 'cli', 'fpm', 'supervisor', 'dev', 'oci', 'supervisor-oci' ]
image-variant: [ 'oci', 'supervisor-oci' ]
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -24,7 +24,7 @@ jobs:
run: |
VERSION=${{ matrix.image-variant }}
PHP_SHORT_VERSION=8.3
PHP_VERSION=8.3.8
PHP_VERSION=8.3.7
tmpName="image-$RANDOM"
docker build $VERSION --file $VERSION/Dockerfile --tag $tmpName --build-arg PHP_VERSION=$PHP_VERSION
Expand All @@ -38,8 +38,6 @@ jobs:
docker push $IMAGE_ID:$VERSION
docker tag $tmpName $IMAGE_ID:${VERSION}-$PHP_VERSION
docker push $IMAGE_ID:${VERSION}-$PHP_VERSION
docker tag $tmpName $IMAGE_ID:${VERSION}-$PHP_SHORT_VERSION
docker push $IMAGE_ID:${VERSION}-$PHP_SHORT_VERSION
if [ "$VERSION" == "fpm" ]; then
docker tag $tmpName $IMAGE_ID:latest
docker push $IMAGE_ID:latest
Expand Down
2 changes: 1 addition & 1 deletion oci/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ RUN set -eux; \
wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-sdk-linuxx64.zip \
;\
unzip instantclient-basiclite-linuxx64.zip ; \
unzip instantclient-sdk-linuxx64.zip ;\
unzip -o instantclient-sdk-linuxx64.zip ;\
rm -f instantclient-basiclite-linuxx64.zip; \
rm -f instantclient-sdk-linuxx64.zip; \
mv instantclient*/ /usr/lib/instantclient; \
Expand Down
2 changes: 1 addition & 1 deletion supervisor-oci/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ RUN set -eux; \
wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-sdk-linuxx64.zip \
;\
unzip instantclient-basiclite-linuxx64.zip ; \
unzip instantclient-sdk-linuxx64.zip ;\
unzip -o instantclient-sdk-linuxx64.zip ;\
rm -f instantclient-basiclite-linuxx64.zip; \
rm -f instantclient-sdk-linuxx64.zip; \
mv instantclient*/ /usr/lib/instantclient; \
Expand Down

0 comments on commit c73187d

Please sign in to comment.