Skip to content

Commit

Permalink
Build and push docker images to GHCR
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-c committed Dec 23, 2023
1 parent 04c2db4 commit 85e45f1
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 to GitHub Container Registry
# TODO: pin to hash
uses: elgohr/Publish-Docker-Github-Action@main
with:
name: ${{ github.repository }}
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 85e45f1

Please sign in to comment.