Skip to content

Feat: update background, footer and header #26

Feat: update background, footer and header

Feat: update background, footer and header #26

Workflow file for this run

name: Build and Deploy via Docker
on:
push:
branches:
- main # or your default branch
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build Docker image using build-push-action
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile.production
tags: my-site:latest
build-args: |
NEXT_PUBLIC_CONTENTFUL_SPACE=${{ secrets.NEXT_PUBLIC_CONTENTFUL_SPACE }}
NEXT_PUBLIC_CONTENTFUL_ACCESS_TOKEN=${{ secrets.NEXT_PUBLIC_CONTENTFUL_ACCESS_TOKEN }}
- name: Run container and copy output
run: |
docker run --rm -v ${{ github.workspace }}/output:/output my-site
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./output