Skip to content

Bump the aws group with 2 updates #779

Bump the aws group with 2 updates

Bump the aws group with 2 updates #779

Workflow file for this run

name: CI/CD pipeline
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Set up QEMU
uses: docker/setup-qemu-action@v4
with:
image: tonistiigi/binfmt:latest
platforms: arm64
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Log in to the Container registry
uses: docker/login-action@v4
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v6
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=ref,event=branch
type=ref,event=pr
type=raw,value=latest,enable={{is_default_branch}}
- name: Build and push Docker image
uses: docker/build-push-action@v7
with:
context: .
push: ${{ !(github.event_name == 'pull_request' && github.event.pull_request.user.login == 'dependabot[bot]') }}
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
dependabot-auto-merge:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request' && github.event.pull_request.user.login == 'dependabot[bot]'
needs: [build-and-push-image]
steps:
- id: metadata
uses: dependabot/fetch-metadata@v3
with:
github-token: ${{ secrets.AUTO_MERGE_PERSONAL_TOKEN }}
- id: check-update-type
run: |
if [[ "${{ steps.metadata.outputs.update-type }}" == "version-update:semver-patch" ]] || \
[[ "${{ steps.metadata.outputs.update-type }}" == "version-update:semver-minor" ]]; then
echo "SHOULD_MERGE=true" >> $GITHUB_OUTPUT
else
echo "SHOULD_MERGE=false" >> $GITHUB_OUTPUT
fi
- if: steps.check-update-type.outputs.SHOULD_MERGE == 'true'
run: gh pr review --approve "$PR_URL" && gh pr merge --admin --squash "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.AUTO_MERGE_PERSONAL_TOKEN }}