📝 Added development pause warning #35
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: HugoBuildDev | |
on: | |
workflow_dispatch: # To have the ability to run the workflow manually | |
push: | |
branches: [dev] | |
env: | |
NAME: ./ | |
CONTAINER-NAME: fedodo-home | |
jobs: | |
ReleaseDEV: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the repository | |
- uses: actions/checkout@v3 | |
# Install Hugo | |
- name: Hugo setup | |
uses: peaceiris/actions-hugo@v2.5.0 | |
with: | |
extended: true | |
# Build the hugo repository | |
- run: hugo | |
working-directory: ./${{ env.NAME }}/ | |
- name: Login to Docker Hub | |
uses: docker/login-action@v1 | |
with: | |
username: fedodo | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build the Docker image | |
run: docker build . --file ./${{ env.NAME }}/Dockerfile --tag fedodo/${{ env.CONTAINER-NAME }}:dev | |
- name: Push the image to dockerhub | |
run: docker push fedodo/${{ env.CONTAINER-NAME }}:dev |