Skip to content
Discussion options

You must be logged in to vote

Wait a minute. I just tried it and it is working?

This is what I have:

Simple hugo deployment compose.yaml using swarm

services:
  site:
    image: hugomods/hugo:nginx-1.27.4
    networks:
      - proxy
    volumes:
      - public:/site

networks:
  proxy:
    external: true

volumes:
  # This becomes `wiki-cafe-site_public` because swarm prepends the stack name to the volume.
  public:

And my workflow definition .woodpecker/publish.yaml

when:
  - event: push
    branch: main

steps:
  build:
    image: hugomods/hugo:base-0.146.5
    commands:
      - ls -la /
      - pwd
      - hugo build --destination /site
    volumes:
      - wiki-cafe-site_public:/site

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@cgalo5758
Comment options

cgalo5758 Apr 18, 2025
Author Sponsor

@qwerty287
Comment options

@cgalo5758
Comment options

cgalo5758 Apr 23, 2025
Author Sponsor

Answer selected by anbraten
@qwerty287
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants