Skip to content

Commit

Permalink
Images 3.0: Composable tools
Browse files Browse the repository at this point in the history
  • Loading branch information
parisk committed Sep 16, 2023
1 parent c2b2135 commit 146c420
Show file tree
Hide file tree
Showing 62 changed files with 613 additions and 434 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: CI

on: push

jobs:
v3:
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/bake-action@v4
env:
TAG: ${{ github.sha }}
with:
push: true
files: docker-bake.hcl
set: |
*.cache-from=type=gha
*.cache-to=type=gha,mode=max
21 changes: 0 additions & 21 deletions .github/workflows/docker.yml

This file was deleted.

20 changes: 0 additions & 20 deletions bin/build

This file was deleted.

20 changes: 0 additions & 20 deletions bin/push

This file was deleted.

157 changes: 157 additions & 0 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
variable "PREFIX"{
default = "ghcr.io/sourcelair/images/v3"
}

variable "TAG"{
default = "latest"
}

group "default"{
targets = [
"base",
"tools_git",
"tools_goreman",
"tools_psql",
"tools_python",
"tools_node",
"tools_ruby",
"workspace",
]
}

target "base"{
context = "images/v3/base"
tags = [
"${PREFIX}/base:${TAG}"
]
}

target "tools_base" {
context = "images/v3/tools/base"
contexts = {
base = "target:base"
}
tags = [
"${PREFIX}/tools/git:${TAG}"
]
}

target "tools_git" {
context = "images/v3/tools/git"
contexts = {
tools_base = "target:tools_base"
}
tags = [
"${PREFIX}/tools/git:${TAG}"
]
}

target "tools_psql" {
context = "images/v3/tools/psql"
contexts = {
tools_base = "target:tools_base"
}
tags = [
"${PREFIX}/tools/psql:${TAG}"
]
}

target "tools_python" {
context = "images/v3/tools/python"
contexts = {
tools_base = "target:tools_base"
}
tags = [
"${PREFIX}/tools/python:${TAG}"
]
}

target "tools_node" {
context = "images/v3/tools/node"
contexts = {
tools_base = "target:tools_base"
}
tags = [
"${PREFIX}/tools/node:${TAG}"
]
}

target "tools_ruby" {
context = "images/v3/tools/ruby"
contexts = {
tools_base = "target:tools_base"
}
tags = [
"${PREFIX}/tools/ruby:${TAG}"
]
}

target "tools_gh" {
context = "images/v3/tools/gh"
contexts = {
tools_base = "target:tools_base"
}
tags = [
"${PREFIX}/tools/gh:${TAG}"
]
}

target "tools_goreman" {
context = "images/v3/tools/goreman"
contexts = {
tools_base = "target:tools_base"
}
tags = [
"${PREFIX}/tools/goreman:${TAG}"
]
}

target "tools_redis_cli" {
context = "images/v3/tools/redis-cli"
contexts = {
tools_base = "target:tools_base"
}
tags = [
"${PREFIX}/tools/redis-cli:${TAG}"
]
}

target "tools_mongosh" {
context = "images/v3/tools/mongosh"
contexts = {
tools_base = "target:tools_base"
}
tags = [
"${PREFIX}/tools/mongosh:${TAG}"
]
}

target "tools_mysqlsh" {
context = "images/v3/tools/mysqlsh"
contexts = {
tools_base = "target:tools_base"
}
tags = [
"${PREFIX}/tools/mysqlsh:${TAG}"
]
}

target "workspace" {
context = "images/v3/workspace"
contexts = {
base = "target:base"
tools_git = "target:tools_git"
tools_gh = "target:tools_gh"
tools_goreman = "target:tools_goreman"
tools_mongosh = "target:tools_mongosh"
tools_mysqlsh = "target:tools_mysqlsh"
tools_psql = "target:tools_psql"
tools_python = "target:tools_python"
tools_node = "target:tools_node"
tools_redis_cli = "target:tools_redis_cli"
tools_ruby = "target:tools_ruby"
}
tags = [
"${PREFIX}/workspace:${TAG}"
]
}
6 changes: 0 additions & 6 deletions images/v3/base/.tern-config

This file was deleted.

Loading

0 comments on commit 146c420

Please sign in to comment.