Skip to content

Commit

Permalink
Added Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
07joshua03 committed Oct 9, 2023
1 parent 0b41a00 commit f167628
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build and Deploy
on:
push:
pull_request:
workflow_dispatch:
jobs:
buildAndDeploy:
name: Build and Deploy Docker Image
runs-on: ubuntu-latest
steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: ghcr.io/wisvch/BTWebsite2024
tags: type=sha, prefix={{date 'YYYYMMDD'}}-
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
push: ${{ github.ref == 'refs/heads/master' }}
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 f167628

Please sign in to comment.