Skip to content

Commit

Permalink
Merge pull request #2014 from nodiscc/build-docker-pr
Browse files Browse the repository at this point in the history
tools: github actions: build docker images on pull requests
  • Loading branch information
nodiscc authored Aug 19, 2023
2 parents 638a7c5 + ea57088 commit 5a6515c
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/docker-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Build Docker image (Pull Request)
on:
pull_request:
branches: [ master ]

jobs:
docker-build:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build Docker image
id: docker_build
uses: docker/build-push-action@v2
with:
push: false
tags: shaarli/shaarli:pr-${{ github.event.number }}
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}

0 comments on commit 5a6515c

Please sign in to comment.