Skip to content

Commit

Permalink
Refactoring: specify versions in one file
Browse files Browse the repository at this point in the history
Signed-off-by: Silvio Moioli <[email protected]>
  • Loading branch information
moio committed Sep 9, 2022
1 parent 2d61f85 commit dd56f3c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Read Versions File
id: versions
uses: falti/[email protected]
with:
path: versions
log-variables: true
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
Expand All @@ -26,8 +32,8 @@ jobs:
platforms: linux/amd64,linux/arm64
push: true
build-args: |
GO_VERSION=1.18
DLV_VERSION=${{ github.ref_name }}
GO_VERSION=${{ steps.versions.outputs.go_version }}
DLV_VERSION=${{ steps.versions.outputs.dlv_version }}
tags: |
ghcr.io/${{ github.repository }}:${{ github.ref_name }}
ghcr.io/${{ github.repository }}:${{ steps.versions.outputs.dlv_version }}-${{ steps.versions.outputs.delve_debugger_version }}
ghcr.io/${{ github.repository }}:latest
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
GO_VERSION=1.18
DLV_VERSION=1.9.1
DELVE_DEBUGGER_VERSION=1
include versions

IMAGE_NAME=ghcr.io/moio/delve-debugger

Expand Down
3 changes: 3 additions & 0 deletions versions
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
GO_VERSION=1.18
DLV_VERSION=1.9.1
DELVE_DEBUGGER_VERSION=1

0 comments on commit dd56f3c

Please sign in to comment.