Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/docker-image-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Example Workflow

on:
push:
branches:
- main
- develop
tags:
- 'v*'
paths:
- 'src/**'
- '.github/workflows/docker-image-ci.yml'

pull_request:
branches:
- main
paths:
- 'src/**'
- '.github/workflows/docker-image-ci.yml'

schedule:
- cron: '0 0 1 * *'

workflow_dispatch:

jobs:
build-and-publish:
uses: jonas-merkle/docker-workflow/.github/workflows/build-and-publish-docker-image.yml@main
with:
registry-image: ghcr.io/${{ github.repository }}
work-dir: ./src
7 changes: 6 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ services:

# Cloudflare Tunnel Service
cloudflare-tunnel:
image: cloudflare/cloudflared:latest # Pull the latest version of the Cloudflare Tunnel image
#image: cloudflare/cloudflared:latest # Pull the latest version of the Cloudflare Tunnel image
image: ghcr.io/jonas-merkle/container-cloudflare-tunnel:main
#image: cloudflare/cloudflared
#build:
# context: ./src
# dockerfile: ./Dockerfile
container_name: cloudflare-tunnel # Name of the Cloudflare Tunnel container
hostname: cloudflare-tunnel # Hostname for the Cloudflare Tunnel container

Expand Down
31 changes: 31 additions & 0 deletions src/docker-bake.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
variable "DEFAULT_TAG" {
default = "app:local"
}

// Special target: https://github.com/docker/metadata-action#bake-definition
target "docker-metadata-action" {
tags = ["${DEFAULT_TAG}"]
}

// Default target if none specified
group "default" {
targets = ["image-local"]
}

target "image" {
inherits = ["docker-metadata-action"]
}

target "image-local" {
inherits = ["image"]
output = ["type=docker"]
}

target "image-all" {
inherits = ["image"]
platforms = [
"linux/amd64",
"linux/arm/v7",
"linux/arm64"
]
}