Add dev tag handling in build workflow & remove debug logs from destinationEdit store
- Updated `.gitea/workflows/build.yml` to push `dev` tag when on the `dev` branch. - Removed debug `console.log` statements from `destinationEdit.js`.
This commit is contained in:
parent
cbd467d3b0
commit
0fef090372
2 changed files with 4 additions and 9 deletions
|
|
@ -118,8 +118,9 @@ jobs:
|
||||||
echo "Pushing latest and main tags..."
|
echo "Pushing latest and main tags..."
|
||||||
docker push ${IMAGE_BASE}:latest
|
docker push ${IMAGE_BASE}:latest
|
||||||
docker push ${IMAGE_BASE}:main
|
docker push ${IMAGE_BASE}:main
|
||||||
else
|
elif [ "${{ gitea.ref_name }}" = "dev" ]; then
|
||||||
echo "Skipping latest/main tags - not on main branch (current: ${{ gitea.ref_name }})"
|
echo "Pushing dev tag..."
|
||||||
|
docker push ${IMAGE_BASE}:dev
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Create and push git tag
|
- name: Create and push git tag
|
||||||
|
|
|
||||||
|
|
@ -128,14 +128,10 @@ export const useDestinationEditStore = defineStore('destinationEdit', {
|
||||||
}, 10));
|
}, 10));
|
||||||
|
|
||||||
const destinationMap = new Map();
|
const destinationMap = new Map();
|
||||||
|
|
||||||
console.log("premiseids", premiseIds )
|
|
||||||
|
|
||||||
premiseIds.forEach(premiseId => {
|
premiseIds.forEach(premiseId => {
|
||||||
this.destinations.get(premiseId)?.forEach(toUpdate => {
|
this.destinations.get(premiseId)?.forEach(toUpdate => {
|
||||||
|
|
||||||
console.log("toUpdate", toUpdate)
|
|
||||||
|
|
||||||
destinationMap.set(toUpdate.id,{
|
destinationMap.set(toUpdate.id,{
|
||||||
annual_amount: toUpdate.annual_amount,
|
annual_amount: toUpdate.annual_amount,
|
||||||
repackaging_costs: toUpdate.repackaging_costs,
|
repackaging_costs: toUpdate.repackaging_costs,
|
||||||
|
|
@ -149,8 +145,6 @@ export const useDestinationEditStore = defineStore('destinationEdit', {
|
||||||
} )
|
} )
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log("destmap",destinationMap)
|
|
||||||
|
|
||||||
await performRequest(this, 'PUT', `${config.backendUrl}/calculation/destination/all`, {destinations: Object.fromEntries(destinationMap)}, false);
|
await performRequest(this, 'PUT', `${config.backendUrl}/calculation/destination/all`, {destinations: Object.fromEntries(destinationMap)}, false);
|
||||||
|
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue