mirror of
https://github.com/frappe/frappe_docker.git
synced 2025-02-08 23:18:28 +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
|
- name: Set Environment Variables
|
||||||
run: cat example.env | grep -o '^[^#]*' >> "$GITHUB_ENV"
|
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
|
- name: Build and test
|
||||||
uses: docker/bake-action@v3.1.0
|
uses: docker/bake-action@v3.1.0
|
||||||
with:
|
with:
|
||||||
|
@ -32,6 +32,10 @@ variable "BENCH_REPO" {
|
|||||||
default = "https://github.com/frappe/bench"
|
default = "https://github.com/frappe/bench"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
variable "LATEST_BENCH_RELEASE" {
|
||||||
|
default = "latest"
|
||||||
|
}
|
||||||
|
|
||||||
# Bench image
|
# Bench image
|
||||||
|
|
||||||
target "bench" {
|
target "bench" {
|
||||||
@ -40,7 +44,7 @@ target "bench" {
|
|||||||
}
|
}
|
||||||
context = "images/bench"
|
context = "images/bench"
|
||||||
target = "bench"
|
target = "bench"
|
||||||
tags = ["frappe/bench:latest"]
|
tags = ["frappe/bench:${LATEST_BENCH_RELEASE}"]
|
||||||
}
|
}
|
||||||
|
|
||||||
target "bench-test" {
|
target "bench-test" {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user