Skip to content

Commit 0ff9e2f

Browse files
committed
Add continuous delivery to GHCR
1 parent ad75684 commit 0ff9e2f

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/build-deliver.yaml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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

0 commit comments

Comments
 (0)