Skip to content

Commit c250061

Browse files
committed
ci: add image build workflow.
The workflow needs the $TAG variable to be used as the image tag.
1 parent ea2816b commit c250061

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Build image
2+
on:
3+
push:
4+
tags:
5+
- 'v*'
6+
pull_request:
7+
8+
jobs:
9+
build_and_push:
10+
permissions:
11+
packages: write
12+
contents: read
13+
uses: cnpem/epics-in-docker/.github/workflows/ioc-images.yml@main

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
ioc:
3-
image: ghcr.io/cnpem/hvps-epics-ioc:latest
3+
image: ghcr.io/cnpem/hvps-epics-ioc:$TAG
44
build:
55
context: ./
66
dockerfile: docker/Dockerfile

0 commit comments

Comments
 (0)