From ad005454f0adcbd6723f77d0b617e8d9c71e2c57 Mon Sep 17 00:00:00 2001 From: Justin McReynolds Date: Mon, 14 Oct 2024 22:03:40 -0700 Subject: [PATCH] Add github build-deliver.yaml, as copied from https://github.com/uwcirg/shl-ips/blob/main/.github/workflows/build-deliver.yaml --- .github/workflows/build-deliver.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/build-deliver.yaml diff --git a/.github/workflows/build-deliver.yaml b/.github/workflows/build-deliver.yaml new file mode 100644 index 0000000..7253435 --- /dev/null +++ b/.github/workflows/build-deliver.yaml @@ -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