From 57fd0a8d6f4f61f8266b518b05e79f7e8c7a6bc9 Mon Sep 17 00:00:00 2001 From: Matt Pryor Date: Thu, 27 Apr 2023 14:48:13 +0100 Subject: [PATCH] Add workflow for building and pushing custom tags --- .github/workflows/publish-release.yaml | 29 ++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/publish-release.yaml diff --git a/.github/workflows/publish-release.yaml b/.github/workflows/publish-release.yaml new file mode 100644 index 0000000000..7548c2c79a --- /dev/null +++ b/.github/workflows/publish-release.yaml @@ -0,0 +1,29 @@ +name: Publish release + +# Run the tasks on every tag +on: + push: + tags: ["**"] + +# Publish images to GitHub packages +env: + REGISTRY: ghcr.io/stackhpc + TAG: ${{ github.ref_name }} + +jobs: + build_push_images: + name: Build and push images + runs-on: ubuntu-latest + steps: + - name: Check out the repository + uses: actions/checkout@v2 + + - name: Login to GitHub Container Registry + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build and push images + run: make push