forked from mirrors/kingfisher
Added dockerfile and github action to build and publish it
This commit is contained in:
parent
ffdb5a639a
commit
d261e9cb0e
4 changed files with 59 additions and 3 deletions
30
.github/workflows/release-docker.yml
vendored
Normal file
30
.github/workflows/release-docker.yml
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
# .github/workflows/release-docker.yml
|
||||
name: Publish Docker image
|
||||
on:
|
||||
push:
|
||||
tags: ["v*.*.*"] # every semantic-version tag
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
jobs:
|
||||
build-and-push:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: docker/setup-buildx-action@v3
|
||||
- uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
file: docker/Dockerfile
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
tags: |
|
||||
ghcr.io/mongodb/kingfisher:latest
|
||||
ghcr.io/mongodb/kingfisher:${{ github.ref_name }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue