Skip to content

Commit

Permalink
add cd
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdickinson committed Jul 6, 2024
1 parent 5ea826a commit 4b6a668
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: CD

on:
workflow_run:
workflows: [CI]
branches: [main]
types:
- completed

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- name: build docker service images
id: build
uses: docker/build-push-action@v5
with:
push: true
load: true
tags: latest
cache-from: type=gha,scope=discordbot
cache-to: type=gha,mode=max,scope=discordbot

4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: XTP CI
name: CI

on:
workflow_dispatch:
push:

jobs:
build:
test:
runs-on: ubuntu-latest

services:
Expand Down

0 comments on commit 4b6a668

Please sign in to comment.