Skip to content

Commit efcdc19

Browse files
committed
Tag Docker images on releases. Fixes #1165
1 parent 526854f commit efcdc19

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/release-packages.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,14 @@ jobs:
6868
run: |
6969
docker run --rm -v $(pwd)/vhdl-projects:/data \
7070
ghcr.io/nickg/nvc:latest /data/flopoco/test.sh
71-
- name: Push to ghcr.io
71+
- name: Login to ghcr.io
7272
run : |
7373
echo "${{ secrets.GHCR_TOKEN }}" | \
7474
docker login -u ${{ vars.GHCR_USER }} --password-stdin ghcr.io
75+
- name: Push release tag
76+
if: startsWith(github.ref, 'refs/tags/')
77+
run: |
78+
vers=$(sed -n '1s/AC_INIT(\[.*\], \[\([0-9\.]*\).*\].*/\1/p' configure.ac)
7579
docker push ghcr.io/nickg/nvc:latest
80+
docker tag ghcr.io/nickg/nvc:latest ghcr.io/nickg/nvc:$vers
81+
docker push ghcr.io/nickg/nvc:$vers

contrib/debian/control

+1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ Build-Depends: debhelper (>= 9), tcl-dev, llvm-dev, libreadline-dev,
99
Package: nvc
1010
Architecture: any
1111
Depends: ${shlibs:Depends}, ${misc:Depends}, binutils
12+
Recommends: tcllib
1213
Description: VHDL compiler and simulator

0 commit comments

Comments
 (0)