Skip to content

Commit

Permalink
add commit
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricve committed Aug 12, 2024
0 parents commit a13cf7c
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -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 }}
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
10 changes: 10 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; url=https://join.slack.com/t/kerberosio/shared_invite/zt-2oj3q6boi-nFNRkNWGZ~x6WB4SE8l7Tg" />
<title>Redirecting...</title>
</head>
<body>
<p>If you are not redirected, <a href="https://join.slack.com/t/kerberosio/shared_invite/zt-2oj3q6boi-nFNRkNWGZ~x6WB4SE8l7Tg">click here</a>.</p>
</body>
</html>

0 comments on commit a13cf7c

Please sign in to comment.