fix(deps): update github.com/aws/aws-sdk-go-v2 (minor) #11054
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: tunnel-server | |
on: | |
pull_request: | |
branches: | |
- master | |
push: | |
branches: | |
- master | |
tags: | |
- 'v*' | |
jobs: | |
tunnel-server: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
id-token: write | |
packages: write | |
steps: | |
- name: Set image tag | |
if: startsWith(github.ref, 'refs/tags/v') | |
run: echo "IMAGE_TAG=${GITHUB_REF#refs/tags/v}" | tee -a ${GITHUB_ENV} | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Docker build | |
run: | | |
docker build \ | |
-t aws-iot-secure-tunnel-server \ | |
-f ./tunnel/cmd/secure-tunnel-server/Dockerfile . | |
- name: Login to GitHub Container Registry | |
if: startsWith(github.ref, 'refs/tags') | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Push to GitHub Container Registry | |
if: startsWith(github.ref, 'refs/tags') | |
run: | | |
image=ghcr.io/${{ github.repository_owner }}/aws-iot-secure-tunnel-server | |
docker tag aws-iot-secure-tunnel-server ${image}:${IMAGE_TAG:-devel} | |
docker tag aws-iot-secure-tunnel-server ${image}:latest | |
docker push ${image}:${IMAGE_TAG:-devel} | |
docker push ${image}:latest | |
docker logout ghcr.io | |
- name: Configure AWS credentials | |
if: startsWith(github.ref, 'refs/tags') | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
role-to-assume: arn:aws:iam::610248501808:role/ci/GitHubActions-aws-iot-device-sdk-go | |
aws-region: us-east-1 | |
- name: Login to Amazon ECR Public | |
if: startsWith(github.ref, 'refs/tags') | |
uses: aws-actions/amazon-ecr-login@v2 | |
with: | |
registry-type: public | |
- name: Push to ECR public | |
if: startsWith(github.ref, 'refs/tags') | |
run: | | |
image=public.ecr.aws/${{ secrets.AWS_ECR_PUBLIC_ALIAS }}/aws-iot-secure-tunnel-server | |
docker tag aws-iot-secure-tunnel-server ${image}:${IMAGE_TAG:-devel} | |
docker tag aws-iot-secure-tunnel-server ${image}:latest | |
docker push ${image}:${IMAGE_TAG:-devel} | |
docker push ${image}:latest | |
docker logout public.ecr.aws |