Skip to content

fix(deps): update aws-sdk-go-v2 monorepo #2328

fix(deps): update aws-sdk-go-v2 monorepo

fix(deps): update aws-sdk-go-v2 monorepo #2328

Workflow file for this run

name: master
on:
push:
branches:
- master
permissions:
contents: read
packages: write
env:
IMAGE_NAME: traq
IMAGE_TAG: master
jobs:
image:
name: Build Docker Image
runs-on: ubuntu-latest
outputs:
image-digest: ${{ steps.build.outputs.digest }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Set TRAQ_VERSION env
run: echo "TRAQ_VERSION=master-SNAPSHOT" >> $GITHUB_ENV
- name: Set TRAQ_REVISION env
run: echo "TRAQ_REVISION=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
- name: Set up QEMU
uses: docker/setup-qemu-action@96fe6ef7f33517b61c61be40b68a1882f3264fb8 # v4.2.0
with:
platforms: all
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0
- name: Show available platforms
run: echo ${{ steps.buildx.outputs.platforms }}
- name: Login to GitHub Container Registry
uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
with:
registry: ghcr.io
username: traptitech
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
id: build
uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
build-args: |
TRAQ_VERSION=${{ env.TRAQ_VERSION }}
TRAQ_REVISION=${{ env.TRAQ_REVISION }}
tags: |
ghcr.io/traptitech/${{ env.IMAGE_NAME }}:master
cache-from: type=gha
cache-to: type=gha,mode=max
scan:
name: Scan Image Vulnerability
runs-on: ubuntu-latest
needs: [image]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Pull docker image
run: docker pull ghcr.io/traptitech/${IMAGE_NAME}@${{ needs.image.outputs.image-digest }}
- name: Container image scan
uses: crazy-max/ghaction-container-scan@ffcba8deb5cb3531954cbedbbcd0179d79edf510 # v4.1.0
with:
image: ghcr.io/traptitech/${{ env.IMAGE_NAME }}@${{ needs.image.outputs.image-digest }}
annotations: true
run-manifest-renovate:
name: Run Renovate on manifest
runs-on: ubuntu-latest
needs: [image]
permissions:
contents: read
actions: write
steps:
- run: 'gh api --method POST -H "Accept: application/vnd.github+json" /repos/traPtitech/manifest/actions/workflows/renovate.yaml/dispatches -f "ref=main"'
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}