Skip to content

Commit 57fd0a8

Browse files
author
Matt Pryor
committed
Add workflow for building and pushing custom tags
1 parent 32f8c5e commit 57fd0a8

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Publish release
2+
3+
# Run the tasks on every tag
4+
on:
5+
push:
6+
tags: ["**"]
7+
8+
# Publish images to GitHub packages
9+
env:
10+
REGISTRY: ghcr.io/stackhpc
11+
TAG: ${{ github.ref_name }}
12+
13+
jobs:
14+
build_push_images:
15+
name: Build and push images
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Check out the repository
19+
uses: actions/checkout@v2
20+
21+
- name: Login to GitHub Container Registry
22+
uses: docker/login-action@v1
23+
with:
24+
registry: ghcr.io
25+
username: ${{ github.actor }}
26+
password: ${{ secrets.GITHUB_TOKEN }}
27+
28+
- name: Build and push images
29+
run: make push

0 commit comments

Comments
 (0)