mirror of
https://github.com/frappe/frappe_docker.git
synced 2024-11-09 14:50:58 +00:00
Tag bench images with the latest bench release version (#1183)
Remove latest tag and make it default
This commit is contained in:
parent
f485a13a25
commit
c3df323a9f
3
.github/workflows/build_bench.yml
vendored
3
.github/workflows/build_bench.yml
vendored
@ -34,6 +34,9 @@ jobs:
|
||||
- name: Set Environment Variables
|
||||
run: cat example.env | grep -o '^[^#]*' >> "$GITHUB_ENV"
|
||||
|
||||
- name: Get Bench Latest Version
|
||||
run: echo "LATEST_BENCH_RELEASE=$(curl -s 'https://api.github.com/repos/frappe/bench/releases/latest' | jq -r '.tag_name')" >> "$GITHUB_ENV"
|
||||
|
||||
- name: Build and test
|
||||
uses: docker/bake-action@v3.1.0
|
||||
with:
|
||||
|
@ -32,6 +32,10 @@ variable "BENCH_REPO" {
|
||||
default = "https://github.com/frappe/bench"
|
||||
}
|
||||
|
||||
variable "LATEST_BENCH_RELEASE" {
|
||||
default = "latest"
|
||||
}
|
||||
|
||||
# Bench image
|
||||
|
||||
target "bench" {
|
||||
@ -40,7 +44,7 @@ target "bench" {
|
||||
}
|
||||
context = "images/bench"
|
||||
target = "bench"
|
||||
tags = ["frappe/bench:latest"]
|
||||
tags = ["frappe/bench:${LATEST_BENCH_RELEASE}"]
|
||||
}
|
||||
|
||||
target "bench-test" {
|
||||
|
Loading…
Reference in New Issue
Block a user