From 2840f12796e82b2b00043bf99c0c5bf82bec6393 Mon Sep 17 00:00:00 2001 From: Manish Gupta <59428681+mguptahub@users.noreply.github.com> Date: Thu, 24 Apr 2025 13:14:01 +0530 Subject: [PATCH 1/4] added new action for dockerhub push --- .github/workflows/dockerhub-image.yml | 38 +++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/dockerhub-image.yml diff --git a/.github/workflows/dockerhub-image.yml b/.github/workflows/dockerhub-image.yml new file mode 100644 index 000000000..db02148c8 --- /dev/null +++ b/.github/workflows/dockerhub-image.yml @@ -0,0 +1,38 @@ +name: Docker Image CI + +on: + push: + branches: + - main + + release: + types: [published] + +permissions: + packages: write + contents: read + +jobs: + build-main: + runs-on: ubuntu-latest + steps: + - 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 Docker Image + uses: docker/build-push-action@v5.1.0 + with: + platforms: linux/amd64,linux/arm64 + push: true + tags: makeplane/iframely:latest + env: + DOCKER_BUILDKIT: 1 From ae914d835b0f88e2e04f2fc71844b95ee09d089c Mon Sep 17 00:00:00 2001 From: Manish Gupta <59428681+mguptahub@users.noreply.github.com> Date: Thu, 24 Apr 2025 13:17:56 +0530 Subject: [PATCH 2/4] updated action --- .github/workflows/dockerhub-image.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/dockerhub-image.yml b/.github/workflows/dockerhub-image.yml index db02148c8..10a85e2bc 100644 --- a/.github/workflows/dockerhub-image.yml +++ b/.github/workflows/dockerhub-image.yml @@ -1,4 +1,4 @@ -name: Docker Image CI +name: DockerHub Image CI on: push: @@ -8,10 +8,6 @@ on: release: types: [published] -permissions: - packages: write - contents: read - jobs: build-main: runs-on: ubuntu-latest @@ -28,11 +24,20 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Extract metadata (tags, labels) + id: meta + run: | + if [[ "${{ github.event_name }}" == "push" ]]; then + echo "TAG_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV + elif [[ "${{ github.event_name }}" == "release" ]]; then + echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV + fi + - name: Build and Push Docker Image uses: docker/build-push-action@v5.1.0 with: platforms: linux/amd64,linux/arm64 push: true - tags: makeplane/iframely:latest + tags: makeplane/iframely:${{ env.TAG_NAME }} env: DOCKER_BUILDKIT: 1 From 8d0bd2641c678c61b76777e9eecaa20d582dfffd Mon Sep 17 00:00:00 2001 From: Manish Gupta <59428681+mguptahub@users.noreply.github.com> Date: Thu, 24 Apr 2025 17:11:54 +0530 Subject: [PATCH 3/4] updated default redirection --- app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index 60f407f1e..451819a41 100644 --- a/app.js +++ b/app.js @@ -37,7 +37,7 @@ if (CONFIG.allowedOrigins) { } app.disable( 'x-powered-by' ); app.use(function(req, res, next) { - res.setHeader('X-Powered-By', 'Iframely'); + res.setHeader('X-Powered-By', 'plane.so'); next(); }); @@ -170,7 +170,7 @@ if (process.env.NODE_ENV !== 'test') { } app.get('/', function(req, res) { - res.writeHead(302, { Location: 'http://iframely.com'}); + res.writeHead(302, { Location: 'https://plane.so'}); res.end(); }); From 64c270a44518b89f8591e54b32fdbb479cf393ac Mon Sep 17 00:00:00 2001 From: Manish Gupta <59428681+mguptahub@users.noreply.github.com> Date: Thu, 24 Apr 2025 17:13:51 +0530 Subject: [PATCH 4/4] updated action --- .github/workflows/dockerhub-image.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dockerhub-image.yml b/.github/workflows/dockerhub-image.yml index 10a85e2bc..19c5aaa49 100644 --- a/.github/workflows/dockerhub-image.yml +++ b/.github/workflows/dockerhub-image.yml @@ -1,9 +1,9 @@ name: DockerHub Image CI on: - push: - branches: - - main + # push: + # branches: + # - main release: types: [published]