Skip to content
This repository was archived by the owner on Aug 5, 2025. It is now read-only.

Bump sentry-sdk from 1.30.0 to 2.25.0 #61

Bump sentry-sdk from 1.30.0 to 2.25.0

Bump sentry-sdk from 1.30.0 to 2.25.0 #61

Workflow file for this run

name: Create and publish a Docker image
on:
push:
branches:
- main
tags:
- 'v*'
pull_request:
branches:
- main
env:
REGISTRY: ghcr.io
https://docs.docker.com/build/ci/github-actions/share-image-jobs/

Check failure on line 15 in .github/workflows/docker.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/docker.yml

Invalid workflow file

You have an error in your yaml syntax on line 15
jobs:
build:
name: Build Image
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
driver: docker
- name: Build
uses: docker/build-push-action@v5
with:
context: .
load: true
tags: ${{ github.repository }}:latest
test:
name: Run Tests
needs: build
runs-on: ubuntu-latest
steps:
- name: Testing
run: |
docker run --rm ${{ github.repository }}:latest echo "test"
push-ghcr:
name: Push to GHCR Registry
if: ${{ github.actor != 'dependabot[bot]' }}
needs: test
runs-on: ubuntu-latest
steps:
- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set Tags and Labels
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ github.repository }}
tags: |
type=ref,event=branch
type=ref,event=pr
type=pep440,pattern={{version}}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
push-dockerhub:
name: Push to DockerHub Registry
if: startsWith(github.ref, 'refs/tags/v') && ${{ github.actor != 'dependabot[bot]' }}
needs: test
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set Tags and Labels
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ github.repository }}
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Update Docker Hub Description
uses: peter-evans/dockerhub-description@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: ${{ github.repository }}
readme-filepath: ./docker.md