diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 0000000..5d18ef3 --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,29 @@ +name: ci + +on: + push: + branches: + - "oracle-free-23.2.0-faststart" + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Build and push + uses: docker/build-push-action@v5 + with: + context: . + platforms: linux/amd64,linux/arm64 + push: true + tags: mochoa/oraclefree-docker-extension:23.2.0 diff --git a/Dockerfile b/Dockerfile index 9dd9aa4..c98f153 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,11 @@ FROM --platform=$BUILDPLATFORM node:17.7-alpine3.14 AS client-builder -ARG SQLCL_VERSION=23.1 +ARG SQLCL_VERSION=24.1 ARG SQLCL_MINOR=0 -ARG SQLCL_PATCH=089 +ARG SQLCL_PATCH=087 ARG SQLCL_BUILD=0929 WORKDIR /app/client # https://www.oracle.com/database/sqldeveloper/technologies/sqlcl/download/ -ADD sqlcl-${SQLCL_VERSION}.${SQLCL_MINOR}.${SQLCL_PATCH}.${SQLCL_BUILD}.zip . +ADD https://download.oracle.com/otn_software/java/sqldeveloper/sqlcl-${SQLCL_VERSION}.${SQLCL_MINOR}.${SQLCL_PATCH}.${SQLCL_BUILD}.zip . RUN unzip -d /opt sqlcl-${SQLCL_VERSION}.${SQLCL_MINOR}.${SQLCL_PATCH}.${SQLCL_BUILD}.zip # cache packages in layer COPY client/package.json /app/client/package.json