Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build info not appearing on packages #234

Open
jwilmoth-ehs opened this issue Oct 7, 2024 · 1 comment
Open

Build info not appearing on packages #234

jwilmoth-ehs opened this issue Oct 7, 2024 · 1 comment

Comments

@jwilmoth-ehs
Copy link

We have the following Github workflow steps.

      - name: Create 🐙 package
        id: create-zip-package
        uses: OctopusDeploy/create-zip-package-action@v3
        with:
          package_id: ${{ env.PACKAGE_NAME }}
          version: ${{ env.VERSION_NUMBER }}
          output_folder: "./artifacts"
          base_path: "${{ inputs.terraform-path }}"
          files: |
            **/*.tf
      - name: Push 🐙 package
        uses: OctopusDeploy/push-package-action@v3
        env:
          OCTOPUS_URL: ${{ secrets.OCTOPUSSERVERURL }}
          OCTOPUS_API_KEY: ${{ secrets.OCTOPUSSERVERAPIKEY }}
          OCTOPUS_SPACE: ${{ secrets.OCTOPUSSERVER_SPACE }}
        with:
          packages: |
            ${{ steps.create-zip-package.outputs.package_file_path }}
      - name: Push 🐙 build information
        uses: OctopusDeploy/push-build-information-action@v3
        env:
          OCTOPUS_URL: ${{ secrets.OCTOPUSSERVERURL }}
          OCTOPUS_API_KEY: ${{ secrets.OCTOPUSSERVERAPIKEY }}
          OCTOPUS_SPACE: ${{ secrets.OCTOPUSSERVER_SPACE }}
        with:
          packages: |
            ${{ steps.create-zip-package.outputs.package_file_path }}
          version: ${{ env.VERSION_NUMBER }}

All three steps show they succeed in GH logs:

image

The package exists in Octopus, but it does not have the build info. We have some older projects that were using the OctopusDeploy/[email protected] action and that continues to work with OctopusDeploy/push-build-information-action@v3

@jwilmoth-ehs
Copy link
Author

This appears to be cause by passing the path instead of the package name/id to the OctopusDeploy/push-build-information-action@v3. While the same input works for publishing the package, it doesn't work for pushing the build info. it would be nice to have consistency across the actions, but for now perhaps it's a small update to caution that one action takes paths, the other takes IDs (which are not available as output).

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

No branches or pull requests

1 participant