Push website content as a docker image
This commit is contained in:
@@ -10,6 +10,7 @@ env:
|
||||
# Docker & Registries
|
||||
ARCHITECTURES: linux/amd64,linux/arm64
|
||||
IMAGE_NAME: silverbullet
|
||||
WEBSITE_IMAGE_NAME: silverbullet
|
||||
NAMESPACE_GITHUB: silverbulletmd
|
||||
NAMESPACE_DOCKER: zefhemel
|
||||
jobs:
|
||||
@@ -76,3 +77,25 @@ jobs:
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
|
||||
- name: "Website: Extract metadata (tags, labels) for docker"
|
||||
id: website_meta
|
||||
uses: docker/metadata-action@v4.4.0
|
||||
with:
|
||||
images: |
|
||||
${{ env.NAMESPACE_DOCKER }}/${{ env.WEBSITE_IMAGE_NAME }}
|
||||
tags: |
|
||||
type=edge,branch=main
|
||||
|
||||
- name: "Website: Build and push website docker images"
|
||||
uses: docker/build-push-action@v4.0.0
|
||||
with:
|
||||
context: .
|
||||
file: Dockerfile.website
|
||||
platforms: ${{ env.ARCHITECTURES }}
|
||||
push: true
|
||||
provenance: false
|
||||
tags: ${{ steps.website_meta.outputs.tags }}
|
||||
labels: ${{ steps.website_meta.outputs.labels }}
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
|
||||
Reference in New Issue
Block a user