From a13cf7ca4fd733cd9b6e55610cfdb711ee7cd1ec Mon Sep 17 00:00:00 2001 From: Cedric Verstraeten Date: Mon, 12 Aug 2024 22:12:47 +0200 Subject: [PATCH] add commit --- .github/workflows/docker-publish.yml | 29 ++++++++++++++++++++++++++++ Dockerfile | 5 +++++ index.html | 10 ++++++++++ 3 files changed, 44 insertions(+) create mode 100644 .github/workflows/docker-publish.yml create mode 100644 Dockerfile create mode 100644 index.html diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml new file mode 100644 index 0000000..5a57198 --- /dev/null +++ b/.github/workflows/docker-publish.yml @@ -0,0 +1,29 @@ +name: Build and Publish Docker Image + +on: + release: + types: [created] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + + - name: Log in to Docker Hub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Build and push Docker image + uses: docker/build-push-action@v2 + with: + context: . + push: true + tags: kerberos/redirect-docker:${{ github.ref_name }} diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..dfb4c67 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +# Use a lightweight web server image +FROM nginx:alpine + +# Copy the index.html to the nginx html directory +COPY index.html /usr/share/nginx/html/index.html \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..6c514d1 --- /dev/null +++ b/index.html @@ -0,0 +1,10 @@ + + + + + Redirecting... + + +

If you are not redirected, click here.

+ + \ No newline at end of file