-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (43 loc) · 1.37 KB
/
prepare_aws_marketplace_release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Prepare AWS Marketplace Release
on:
push:
tags:
- "*"
workflow_dispatch:
permissions:
contents: read
issues: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Set up JDKs
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: |
11
17
cache: "maven"
- name: Install xmlstarlet
run: sudo apt install -y --no-install-recommends xmlstarlet
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.MARKETPLACE_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.MARKETPLACE_AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- name: Push connector image to AWS Marketplace repository
run: ./tools/pushDockerImageToECR.sh
env:
AWS_REGION: us-east-1
MARKETPLACE_ECR_REPO_NAME: ${{ secrets.MARKETPLACE_ECR_REPO_NAME }}
MARKETPLACE_ECR_ACCOUNT_ID: ${{ secrets.MARKETPLACE_ECR_ACCOUNT_ID }}
- name: Clean up
run: rm -rf Dockerfile artifacts/
- name: Create issue for publishing new version manually
uses: JasonEtco/create-an-issue@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}