Skip to content

Commit

Permalink
Merge pull request #1 from WISVCH/main
Browse files Browse the repository at this point in the history
Fork CH version
  • Loading branch information
cdmpreda authored Oct 18, 2023
2 parents 0b41a00 + c2a741c commit 535b02d
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build and Deploy
on:
push:
pull_request:
workflow_dispatch:
jobs:
buildAndDeploy:
name: Build and Deploy Docker Image
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/wisvch/BTWebsite2024
tags: type=sha, prefix={{date 'YYYYMMDD'}}-
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
push: ${{ github.ref == 'refs/heads/main' }}
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# FROM node:20-alpine AS builder

# RUN apk add python2
# RUN npm i
# RUN npx gulp build

FROM ghcr.io/wisvch/nginx
COPY /public_html/ /srv/

0 comments on commit 535b02d

Please sign in to comment.