Skip to content

Teleport 17.0.0-beta.2 #187

Teleport 17.0.0-beta.2

Teleport 17.0.0-beta.2 #187

name: build-usage-image
on:
release:
types: ["published"]
permissions:
id-token: write
contents: read
jobs:
image:
runs-on: ubuntu-latest
steps:
# This step is used to extract the version of the usage script.
- name: Trim leading v in release
id: version
run: |
echo "version=${GITHUB_REF_NAME#v}" >> $GITHUB_OUTPUT
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3.6.1
- uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
with:
role-to-assume: ${{ secrets.TELEPORT_USAGE_IAM_ROLE_ARN }}
aws-region: us-east-1
- uses: aws-actions/amazon-ecr-login@062b18b96a7aff071d4dc91bc00c4c1a7945b076 # v2.0.1
with:
registry-type: public
# Build and publish container image on ECR.
- uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0
with:
context: "examples/teleport-usage"
tags: public.ecr.aws/gravitational/teleport-usage:${{ steps.version.outputs.version }}
push: true