Skip to content

Commit

Permalink
Add continuous delivery to GHCR
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-c committed Jan 23, 2024
1 parent ad75684 commit 0ff9e2f
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build-deliver.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# docker continuous delivery
# build docker images and push to configured repo, with tags to match branches and git tags
---
name: Build & Deliver
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout git commit
uses: actions/checkout@main

- name: Publish server images to GitHub Container Registry
# TODO: pin to hash
uses: elgohr/Publish-Docker-Github-Action@main
with:
name: ${{ github.repository }}-server
registry: ghcr.io

# GitHub actor
username: ${{ github.actor }}

# GitHub access token
password: ${{ secrets.GITHUB_TOKEN }}

# create docker image tags to match git tags
tag_names: true

0 comments on commit 0ff9e2f

Please sign in to comment.