Skip to content

nginx/aws-marketplace-publish

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

Latest commit

9f17851 · Jun 21, 2024
Jun 20, 2024
Jun 21, 2024
Apr 7, 2023
Apr 6, 2023
Apr 6, 2023
Apr 6, 2023
Apr 6, 2023
Apr 6, 2023
Apr 6, 2023
Apr 6, 2023
Jun 21, 2023
Apr 7, 2023
Jun 21, 2023
Sep 19, 2023
Apr 6, 2023
Jun 21, 2024
Jun 21, 2024
Apr 6, 2023

Repository files navigation

Publish Docker images to AWS Marketplace

This is a simple GitHub Action to publish new versions of Docker images to AWS Marketplace. At the moment, it only supports adding a new version of an existing product. Contributions are welcome!

Usage

name: Publish to AWS Marketplace

on:
  push:
    tags:
      - 'v[0-9]+.[0-9]+.[0-9]+'

jobs:
  publish:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v3

      - name: Configure AWS credentials
        uses: aws-actions/configure-aws-credentials@v2
        with:
          aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
          aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
          aws-region: us-east-1

      - name: Publish to AWS Marketplace
        uses: nginxinc/[email protected]
        with:
          product-id: ${{ secrets.AWS_MARKETPLACE_PRODUCT_ID }}
          version: ${{ replace(github.ref, 'refs/tags/', '') }}
          registry: 709825985650.dkr.ecr.us-east-1.amazonaws.com/your-repo:tag
          release-notes: |
            - New feature
            - Bug fixes
          description: |
            This is a description of your product.
          usage-instructions: |
            This is how you use your product.

Inputs

Name Description Required
product-id The ID of the product to publish. Yes
version The version of the product to publish. Yes
registry The Docker image to publish. Yes
release-notes Release notes for the new version. Yes
description Description of the product. Yes
usage-instructions Usage instructions for the product. Yes