Skip to content

Commit

Permalink
Add workflow for building and pushing custom tags
Browse files Browse the repository at this point in the history
  • Loading branch information
mkjpryor committed Apr 27, 2023
1 parent 32f8c5e commit 57fd0a8
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/publish-release.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 57fd0a8

Please sign in to comment.