diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml new file mode 100644 index 0000000000..72f914ca06 --- /dev/null +++ b/.github/workflows/docker-publish.yml @@ -0,0 +1,59 @@ +name: docker + +on: + push: + branches: [ docker ] + tags: [ '*.*.*' ] + pull_request: + branches: [ docker ] + +env: + REGISTRY: docker.io + IMAGE_NAME: ${{ github.repository }} + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + build: + + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up QEMU + id: qemu + uses: docker/setup-qemu-action@v2 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Log into Docker Hub + if: github.event_name != 'pull_request' + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Extract Docker metadata + id: meta + uses: docker/metadata-action@v4 + with: + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + flavor: | + latest=false + + - name: Build and push Docker image + uses: docker/build-push-action@v3 + with: + context: . + platforms: linux/amd64, linux/arm64/v8 + push: ${{ github.event_name != 'pull_request' }} + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} diff --git a/package-lock.json b/package-lock.json index d4bd2418cf..42bae9093f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -34805,4 +34805,4 @@ } } } -} +} \ No newline at end of file diff --git a/spec/GridFSBucketStorageAdapter.spec.js b/spec/GridFSBucketStorageAdapter.spec.js old mode 100644 new mode 100755 diff --git a/spec/LdapAuth.spec.js b/spec/LdapAuth.spec.js old mode 100644 new mode 100755 diff --git a/src/Adapters/Auth/google.js b/src/Adapters/Auth/google.js old mode 100644 new mode 100755 diff --git a/src/Adapters/Auth/ldap.js b/src/Adapters/Auth/ldap.js old mode 100644 new mode 100755 diff --git a/src/Adapters/Auth/vkontakte.js b/src/Adapters/Auth/vkontakte.js old mode 100644 new mode 100755 diff --git a/src/Adapters/Files/GridFSBucketAdapter.js b/src/Adapters/Files/GridFSBucketAdapter.js old mode 100644 new mode 100755 diff --git a/src/Controllers/FilesController.js b/src/Controllers/FilesController.js old mode 100644 new mode 100755 diff --git a/src/GraphQL/loaders/defaultGraphQLTypes.js b/src/GraphQL/loaders/defaultGraphQLTypes.js old mode 100644 new mode 100755 diff --git a/src/GraphQL/loaders/functionsMutations.js b/src/GraphQL/loaders/functionsMutations.js old mode 100644 new mode 100755 diff --git a/src/Options/Definitions.js b/src/Options/Definitions.js old mode 100644 new mode 100755