2
0
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:
Amal Paul 2023-07-18 09:32:27 +05:30 committed by GitHub
parent f485a13a25
commit c3df323a9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -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:

View File

@ -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" {