Skip to content

⬆️ Updated theme #256

⬆️ Updated theme

⬆️ Updated theme #256

Workflow file for this run

name: HugoBuildDev
on:
workflow_dispatch: # To have the ability to run the workflow manually
push:
branches: [dev]
env:
NAME: ./
CONTAINER-NAME: fi-pv
jobs:
ReleaseDEV:
runs-on: ubuntu-latest
steps:
# Checkout the repository
- uses: actions/checkout@v3
# Install Hugo
- name: Hugo setup
uses: peaceiris/[email protected]
with:
extended: true
# Build the hugo repository
- run: hugo
working-directory: ./${{ env.NAME }}/
# Zip the Artifact for GitHubPages deployment
- name: Archive artifact
shell: bash
if: runner.os != 'Windows'
run: tar -cvf ${{ runner.temp }}/artifact.tar -C ./${{ env.NAME }}/public .
# Create a build artifact
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
name: github-pages
path: ${{ runner.temp }}/artifact.tar
# Build the hugo repository
- run: hugo
working-directory: ./${{ env.NAME }}/
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build the Docker image
run: docker build . --file ./${{ env.NAME }}/deployment/Dockerfile --tag lnadev/${{ env.CONTAINER-NAME }}:dev
- name: Push the image to dockerhub
run: docker push lnadev/${{ env.CONTAINER-NAME }}:dev