Skip to content

Commit

Permalink
Merge pull request #131 from timoschlueter/feature/cloudflare-ddos-by…
Browse files Browse the repository at this point in the history
…pass

Added Cloudflare DDOS protection bypass
  • Loading branch information
timoschlueter committed Apr 2, 2024
2 parents 9f9dbb3 + c786f9a commit 7d713ab
Show file tree
Hide file tree
Showing 6 changed files with 197 additions and 224 deletions.
28 changes: 11 additions & 17 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,36 +9,30 @@ jobs:
main:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
uses: docker/login-action@v2
- 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.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
-
name: Docker Build and Push (Dev)
- name: Docker Build and Push (Dev)
id: docker_build_dev
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
push: true
platforms: linux/amd64,linux/arm64,linux/arm/v7
tags: timoschlueter/nightscout-librelink-up:dev
-
name: Docker Build and Push (Tagged)
- name: Docker Build and Push (Tagged)
if: startsWith(github.ref, 'refs/tags/')
id: docker_build_tagged
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
push: true
platforms: linux/amd64,linux/arm64,linux/arm/v7
tags: timoschlueter/nightscout-librelink-up:${{github.ref_name}},timoschlueter/nightscout-librelink-up:latest
-
name: Docker Image digest
- name: Docker Image digest
if: startsWith(github.ref, 'refs/tags/')
run: echo ${{ steps.docker_build.outputs.digest }}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16.16.0-bullseye
FROM node:20-bookworm
LABEL description="Script written in TypeScript that uploads CGM readings from LibreLink Up to Nightscout"

# Create app directory
Expand Down
Loading

0 comments on commit 7d713ab

Please sign in to comment.