Skip to content

OctopusDeploy/push-package-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date
Dec 14, 2023
Dec 6, 2022
Mar 30, 2021
Jan 14, 2024
Aug 23, 2023
Mar 30, 2021
Dec 6, 2022
Mar 30, 2021
Jul 26, 2022
Dec 6, 2022
Jul 12, 2022
Feb 5, 2024
May 13, 2024
Jul 5, 2022
Feb 17, 2023
Mar 30, 2021
Mar 7, 2023
Dec 14, 2023
Dec 6, 2022
Jul 30, 2024
Jul 30, 2024
Dec 12, 2023
Dec 12, 2023
Jul 19, 2022

Repository files navigation

push-package-action

This is a GitHub Action to push a package to Octopus Deploy.

Examples

Incorporate the following actions in your workflow to push a package to Octopus Deploy using an API key, a target instance (i.e. server), and a project:

steps:
  - uses: actions/checkout@v3

  - name: Push a package to Octopus Deploy πŸ™
    uses: OctopusDeploy/push-package-action@v3
    env:
      OCTOPUS_URL: ${{ secrets.SERVER }}
      OCTOPUS_API_KEY: ${{ secrets.API_KEY }}
      OCTOPUS_SPACE: 'Default'
    with:
      packages: |
        package1.tar.gz
        package2.zip
        packages/**/*.zip

πŸ“₯ Environment Variables

Name Description
OCTOPUS_URL The base URL hosting Octopus Deploy (i.e. https://octopus.example.com). It is strongly recommended that this value retrieved from a GitHub secret.
OCTOPUS_API_KEY The API key used to access Octopus Deploy. It is strongly recommended that this value retrieved from a GitHub secret.
OCTOPUS_SPACE The Name of a space within which this command will be executed.

πŸ“₯ Inputs

Name Description
packages Required. A multi-line and/or comma-delimited list of packages to push to Octopus Deploy (i.e. package1,package2).
overwrite_mode Determines the action to perform with package if it already exists in the repository. Valid input values are FailIfExists (default), OverwriteExisting, and IgnoreIfExists.
server The instance URL hosting Octopus Deploy (i.e. "https://octopus.example.com/"). The instance URL is required, but you may also use the OCTOPUS_URL environment variable.
api_key The API key used to access Octopus Deploy. An API key is required, but you may also use the OCTOPUS_API_KEY environment variable. It is strongly recommended that this value retrieved from a GitHub secret.
space The name of a space within which this command will be executed. The space name is required, but you may also use the OCTOPUS_SPACE environment variable.

🀝 Contributions

Contributions are welcome! ❀️ Please read our Contributing Guide for information about how to get involved in this project.