Skip to content

Commit 5484c04

Browse files
authored
Merge pull request #2 from uwcirg/fixup/continuous-delivery
Continuous Delivery
2 parents b93b7cb + 91cbbef commit 5484c04

File tree

3 files changed

+30
-66
lines changed

3 files changed

+30
-66
lines changed

.github/workflows/build-deliver.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# docker continuous delivery
2+
# build docker images and push to configured repo, with tags to match branches and git tags
3+
---
4+
name: Build & Deliver
5+
on: [push]
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout git commit
11+
uses: actions/checkout@main
12+
13+
- name: Publish server images to GitHub Container Registry
14+
# TODO: pin to hash
15+
uses: elgohr/Publish-Docker-Github-Action@main
16+
with:
17+
name: ${{ github.repository }}-server
18+
registry: ghcr.io
19+
20+
# GitHub actor
21+
username: ${{ github.actor }}
22+
23+
# GitHub access token
24+
password: ${{ secrets.GITHUB_TOKEN }}
25+
26+
# create docker image tags to match git tags
27+
tag_names: true
28+
29+
# build Dockerfile in server/ service directory
30+
workdir: server

.github/workflows/client.yaml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/server.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)