From 2035587d657e6078ed5ec55be6e08d356f10a7df Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Tue, 13 Jun 2023 20:52:47 +0200 Subject: [PATCH] Attempt to fix docker build --- .github/workflows/docker-s3.yml | 89 --------------------------------- .github/workflows/docker.yml | 7 ++- 2 files changed, 3 insertions(+), 93 deletions(-) delete mode 100644 .github/workflows/docker-s3.yml diff --git a/.github/workflows/docker-s3.yml b/.github/workflows/docker-s3.yml deleted file mode 100644 index f0340a2..0000000 --- a/.github/workflows/docker-s3.yml +++ /dev/null @@ -1,89 +0,0 @@ -name: Docker S3 - -on: - push: - branches: - - "main" - tags: - - "*" -env: - DENO_VERSION: v1.34 - # Docker & Registries - ARCHITECTURES: linux/amd64,linux/arm64 - IMAGE_NAME: silverbullet-s3 - NAMESPACE_GITHUB: silverbulletmd - NAMESPACE_DOCKER: zefhemel -jobs: - docker-build: - runs-on: ubuntu-latest - - steps: - - name: Setup repo - uses: actions/checkout@v3 - - - name: Set up QEMU for multi-arch builds with buildx - uses: docker/setup-qemu-action@v2 - with: - platforms: ${{ env.ARCHITECTURES }} - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - with: - platforms: ${{ env.ARCHITECTURES }} - - - name: Setup Deno - uses: denoland/setup-deno@d4873ceeec10de6275fecd1f94b6985369d40231 - with: - deno-version: ${{ env.DENO_VERSION }} - - - name: Run bundle build - run: | - deno task build - deno task bundle - - - name: Login to Docker Hub - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Log in to the ghcr Container registry - uses: docker/login-action@v2 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - # - # MetaData Extract Docu: - # - - name: Extract metadata (tags, labels) for Docker - id: meta - uses: docker/metadata-action@v4.4.0 - with: - images: | - # Set the different image names(paces) for docker-hub & ghcr - ${{ env.NAMESPACE_DOCKER }}/${{ env.IMAGE_NAME }} - ghcr.io/${{ env.NAMESPACE_GITHUB }}/${{ env.IMAGE_NAME }} - tags: | - # - # minimal (short sha), enable f desired - # type=sha,enable=true,priority=100,prefix=commit-,suffix=,format=short - # set latest tag for default branch - type=raw,value=latest,enable={{is_default_branch}} - # - # tag w/ full tag part of git tag: - # only present for `on.push.tags` ! - type=semver,pattern={{raw}},enable=true - # type=edge,branch=local # usually this would be the develop branch - - - name: Build and push main docker images - uses: docker/build-push-action@v4.0.0 - with: - context: . - platforms: ${{ env.ARCHITECTURES }} - push: true - file: Dockerfile.s3 - # Disable to get rid of unknown architecture in ghcr - provenance: false - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index b7d2bd2..c92a634 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -7,7 +7,6 @@ on: tags: - "*" env: - DENO_VERSION: v1.34 # Docker & Registries ARCHITECTURES: linux/amd64,linux/arm64 IMAGE_NAME: silverbullet @@ -32,10 +31,10 @@ jobs: platforms: ${{ env.ARCHITECTURES }} - name: Setup Deno - uses: denoland/setup-deno@d4873ceeec10de6275fecd1f94b6985369d40231 + uses: denoland/setup-deno@v1 with: - deno-version: ${{ env.DENO_VERSION }} - + deno-version: v1.34 + - name: Run bundle build run: | deno task build