Skip to content

Commit

Permalink
feat: split out dev build
Browse files Browse the repository at this point in the history
Fixes #6
  • Loading branch information
nijel committed Nov 20, 2024
1 parent eb02603 commit 7deabe9
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 194 deletions.
45 changes: 0 additions & 45 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Pin base for dev
run: sed -i "s@FROM weblate/base:latest@FROM weblate/base:sha-${{ github.sha }}@" dev/Dockerfile

- name: Login to Docker Hub
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
Expand Down Expand Up @@ -76,45 +73,3 @@ jobs:
platforms: linux/amd64,linux/arm64
cache-from: type=gha
cache-to: type=gha,mode=max

# This build should be cached, but needed to load
# image for dev container as load does not work with multiple
# platforms
- name: Build and load (base)
uses: docker/build-push-action@v6
with:
context: base
tags: ${{ steps.base.outputs.tags }}
labels: ${{ steps.base.outputs.labels }}
load: true
cache-from: type=gha

- name: Docker meta (dev)
id: dev
uses: docker/metadata-action@v5
with:
# list of Docker images to use as base name for tags
images: |
weblate/dev
ghcr.io/weblateorg/dev
# generate Docker tags based on the following events/attributes
tags: |
type=schedule
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=edge,branch=main
type=sha,format=long
- name: Build and push (dev)
uses: docker/build-push-action@v6
with:
context: dev
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.dev.outputs.tags }}
labels: ${{ steps.dev.outputs.labels }}
platforms: linux/amd64,linux/arm64
cache-from: type=gha
cache-to: type=gha,mode=max
96 changes: 0 additions & 96 deletions base/Dockerfile

This file was deleted.

10 changes: 0 additions & 10 deletions base/requirements.txt

This file was deleted.

43 changes: 0 additions & 43 deletions dev/Dockerfile

This file was deleted.

0 comments on commit 7deabe9

Please sign in to comment.