Sign inSign up

octopuslabs/gitlab-octocli

Verified Publisher

By Octopus Deploy

Updated over 3 years ago

This repository contains a GitLab-compatible Docker image for the legacy Octopus CLI: octo.

Image
Developer tools
0

50K+

octopuslabs/gitlab-octocli repository overview

This repository contains a GitLab-compatible Docker image for the legacy Octopus CLI: octo.

The legacy Octopus CLI is no longer under feature development. All feature development of the Octopus CLI is being done in the updated cli. This tool will continue to be supported for security patches until July 2023.

Please note: This is part of the Octopus Labs organization and is not officially supported. Please do not contact support if there are any issues with these images.

Platforms

Images are currently available for:

  • linux/amd64 - based on alpine:latest

Tags

The version tag corresponds to the version of the Octopus CLI installed on the image.

The tags are as follows:

  • Latest
  • [Version] For example 9.1.7
  • Latest-[architecture] For example latest-alpine
  • [Version]-[architecture] For example 9.1.7-alpine

Tags

TagDockerfile
alpineDockerfile

You can retrieve a list of all available tags for octopuslabs/gitlab-octocli at https://hub.docker.com/v2/repositories/octopuslabs/gitlab-octocli/tags.

Examples

The image uses the Octopus CLI commands found here. Below are a few examples within GitLab CLI YAML.

build-information

See this blog post for an example of how to construct the build information file using GitLab

push-build-information:
    stage: push-build-information
    image: octopuslabs/gitlab-octocli
    script:
        - octo build-information --package-id=<Package Id> --version=<Version Numbmber> --file=BuildInformation.json --server="<Octopus Server URL>" --apiKey="<API KEY>" --space="<Space Name>"
create-release
create-release:
    stage: create-release
    image: octopuslabs/gitlab-octocli
    script:
        - octo create-release --project=<Project Name>  [--version=<Version Numbmber>]  --server="<Octopus Server URL>" --apiKey="<API KEY>" --space="<Space Name>"
deploy-release
deploy-release:
    stage: deploy-release
    image: octopuslabs/gitlab-octocli
    script:
        - octo deploy-release --project=<Project Name> --releaseNumber=<Release Number> --deployto="<EnvironmentName>" --server="<Octopus Server URL>" --apiKey="<API KEY>" --space="<Space Name>"

Tag summary

Content type

Image

Digest

sha256:1bd85eaf2

Size

38.7 MB

Last updated

over 3 years ago

docker pull octopuslabs/gitlab-octocli