Skip to content

Commit dd56f3c

Browse files
committed
Refactoring: specify versions in one file
Signed-off-by: Silvio Moioli <[email protected]>
1 parent 2d61f85 commit dd56f3c

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ jobs:
99
steps:
1010
- name: Checkout
1111
uses: actions/checkout@v2
12+
- name: Read Versions File
13+
id: versions
14+
uses: falti/[email protected]
15+
with:
16+
path: versions
17+
log-variables: true
1218
- name: Set up QEMU
1319
uses: docker/setup-qemu-action@v2
1420
- name: Set up Docker Buildx
@@ -26,8 +32,8 @@ jobs:
2632
platforms: linux/amd64,linux/arm64
2733
push: true
2834
build-args: |
29-
GO_VERSION=1.18
30-
DLV_VERSION=${{ github.ref_name }}
35+
GO_VERSION=${{ steps.versions.outputs.go_version }}
36+
DLV_VERSION=${{ steps.versions.outputs.dlv_version }}
3137
tags: |
32-
ghcr.io/${{ github.repository }}:${{ github.ref_name }}
38+
ghcr.io/${{ github.repository }}:${{ steps.versions.outputs.dlv_version }}-${{ steps.versions.outputs.delve_debugger_version }}
3339
ghcr.io/${{ github.repository }}:latest

Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
GO_VERSION=1.18
2-
DLV_VERSION=1.9.1
3-
DELVE_DEBUGGER_VERSION=1
1+
include versions
42

53
IMAGE_NAME=ghcr.io/moio/delve-debugger
64

versions

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
GO_VERSION=1.18
2+
DLV_VERSION=1.9.1
3+
DELVE_DEBUGGER_VERSION=1

0 commit comments

Comments
 (0)