How can I integrate Octopus Deploy with GitLab?

Though Octopus doesn’t have an official integration with GitLab, you can easily install the Octopus CLI and run octo commands to package, push, create releases and even initiate deployments. Below is an example of what would need to be included

image: ubuntu:latest

stages:
    - deploy

before_script:
    - apt update && apt install -y
    - apt-get install curl -y
    - apt update && apt install -y --no-install-recommends gnupg curl ca-certificates apt-transport-https
    - curl -sSfL https://apt.octopus.com/public.key | apt-key add -
    - sh -c "echo deb https://apt.octopus.com/ stable main > /etc/apt/sources.list.d/octopus.com.list"
    - apt update && apt install octopuscli -y


deploy:
    stage: deploy
    script:
        - octo version

At this time, the octopusdeploy/octo image will not work with GitLab because of how the ENTRYPOINT is configured within the container.