Simplified github docker build action
This commit is contained in:
@@ -33,17 +33,6 @@ jobs:
|
||||
with:
|
||||
platforms: ${{ env.ARCHITECTURES }}
|
||||
|
||||
- name: Setup Deno
|
||||
uses: denoland/setup-deno@v2
|
||||
with:
|
||||
deno-version: v2.4.5
|
||||
|
||||
- name: Run build
|
||||
run: |
|
||||
deno task build
|
||||
deno task server:dist:linux-x86_64 && mv silverbullet silverbullet-amd64
|
||||
deno task server:dist:linux-aarch64 && mv silverbullet silverbullet-arm64
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
@@ -56,6 +45,7 @@ jobs:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Extract metadata (tags, labels) for Docker
|
||||
id: meta
|
||||
uses: docker/metadata-action@v4.4.0
|
||||
@@ -73,6 +63,7 @@ jobs:
|
||||
# type=edge,branch=main
|
||||
# When pushing to main branch, release as :v2
|
||||
type=raw,value=v2,enable=${{ github.ref == 'refs/heads/main' }}
|
||||
|
||||
- name: Build and push main docker images
|
||||
uses: docker/build-push-action@v4.0.0
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user