Skip to content

Commit

Permalink
ci: image build on demand
Browse files Browse the repository at this point in the history
Signed-off-by: Nico Braun <rainbowstack@gmail.com>
  • Loading branch information
bluebrown committed Jan 16, 2024
1 parent 57bcecb commit 732cdc3
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 4 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: image

on:
workflow_dispatch: {}
push:
branches:
- refactor/rewrite

jobs:
image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Login to the container registry
run: docker login --username bluebrown --password ${{secrets.DOCKERHUB_TOKEN}}

- name: build image
run: make image
env:
DOCKER_BUILDKIT: "1"

- name: publish image
run: docker push docker.io/bluebrown/kobold --all-tags
7 changes: 6 additions & 1 deletion .yamlfmt
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
continue_on_error: true
doublestar: true
include:
- "**/*.yaml"
exclude:
- "**/testdata/**"
formatter:
type: basic
indent: 2
scan_folded_as_literal: true
retain_line_breaks: true
indentless_arrays: true
6 changes: 3 additions & 3 deletions build/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ services:
context: ../
dockerfile: build/Dockerfile
ports:
- 127.0.0.1:8081:8080
- 127.0.0.1:8081:8080
volumes:
- ../testdata/kobold.toml:/etc/kobold/kobold.toml:ro
- ../.local/.ssh:/etc/kobold/.ssh:rw
- ../testdata/kobold.toml:/etc/kobold/kobold.toml:ro
- ../.local/.ssh:/etc/kobold/.ssh:rw
environment:
GITHUB_TOKEN: null
ADO_HOST: null
Expand Down

0 comments on commit 732cdc3

Please sign in to comment.