update ci
This commit is contained in:
parent
52ab0cc474
commit
a6e22c49f6
|
|
@ -7,9 +7,10 @@ build-dev:
|
||||||
when: on_success
|
when: on_success
|
||||||
only:
|
only:
|
||||||
- main
|
- main
|
||||||
image: docker:stable
|
image:
|
||||||
|
name: docker:25.0.3-cli
|
||||||
services:
|
services:
|
||||||
- name: docker:dind
|
- name: docker:25.0.3-dind
|
||||||
command: ["--insecure-registry=103.82.242.92:8900"]
|
command: ["--insecure-registry=103.82.242.92:8900"]
|
||||||
script:
|
script:
|
||||||
- docker logout
|
- docker logout
|
||||||
|
|
@ -26,4 +27,4 @@ auto-deploy:
|
||||||
services:
|
services:
|
||||||
- docker:dind
|
- docker:dind
|
||||||
script:
|
script:
|
||||||
- curl --user admin:$JENKINS_PWD http://38.47.180.165:8080/job/auto-deploy-info-kreasi/build?token=autodeploymedols
|
- curl --user admin:$JENKINS_PWD http://103.31.38.120:8080/job/auto-deploy-info-kreasi/build?token=autodeploymedols
|
||||||
|
|
|
||||||
|
|
@ -312,7 +312,7 @@ export default function DetailContent() {
|
||||||
close();
|
close();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!articleDetail?.files || articleDetail.files.length === 0) {
|
if (!articleDetail?.files || articleDetail?.files.length === 0) {
|
||||||
return (
|
return (
|
||||||
<div className="w-full h-[400px] bg-gray-100 flex items-center justify-center rounded-lg">
|
<div className="w-full h-[400px] bg-gray-100 flex items-center justify-center rounded-lg">
|
||||||
<p className="text-gray-400 text-sm">Gambar tidak tersedia</p>
|
<p className="text-gray-400 text-sm">Gambar tidak tersedia</p>
|
||||||
|
|
@ -373,8 +373,8 @@ export default function DetailContent() {
|
||||||
{/* Gambar utama */}
|
{/* Gambar utama */}
|
||||||
<div className="w-full">
|
<div className="w-full">
|
||||||
<Image
|
<Image
|
||||||
src={articleDetail.files[selectedIndex].fileUrl}
|
src={articleDetail?.files[selectedIndex].fileUrl}
|
||||||
alt={articleDetail.files[selectedIndex].fileAlt || "Berita"}
|
alt={articleDetail?.files[selectedIndex].fileAlt || "Berita"}
|
||||||
width={800}
|
width={800}
|
||||||
height={400}
|
height={400}
|
||||||
className="rounded-lg w-full object-cover"
|
className="rounded-lg w-full object-cover"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue