test action
All checks were successful
Build and Deploy Docker Image / build (push) Successful in 20s

This commit is contained in:
Mike 2025-01-03 10:19:44 -05:00
parent 1fdd2a6049
commit 3641db8ee1
2 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,35 @@
name: Build and Deploy Docker Image
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-docker
steps:
- name: Checkout code
uses: actions/checkout@v4
- run: env
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v2
#
# - name: Log in to Gitea Container Registry
# uses: docker/login-action@v3
# with:
# password: ${{ secrets.PASSWORD }}
# username: ${{ secrets.USERNAME }}
# registry: git.thecodedom.com
#
# - name: Build and push Docker image
# uses: docker/build-push-action@v6
# with:
# context: .
# push: true
# tags: git.thecodedom.com/dotechbro/dotechbro-website:latest

5
Dockerfile Normal file
View file

@ -0,0 +1,5 @@
FROM nginx:alpine
COPY ./product-preview-card-component-main/ /usr/share/nginx/html
CMD ["nginx", "-g", "daemon off;"]