Make S3 always do a Put
Signed-off-by: Elie <elie.charra@cloudskiff.com>
This commit is contained in:
parent
72e3ec0542
commit
7abacf1b99
@ -28,6 +28,7 @@ page: """
|
|||||||
deploy: s3.#Put & {
|
deploy: s3.#Put & {
|
||||||
config: awsConfig
|
config: awsConfig
|
||||||
sourceInline: page
|
sourceInline: page
|
||||||
|
always: true
|
||||||
contentType: "text/html"
|
contentType: "text/html"
|
||||||
target: "s3://\(bucket)/index.html"
|
target: "s3://\(bucket)/index.html"
|
||||||
}
|
}
|
||||||
|
@ -26,8 +26,14 @@ import (
|
|||||||
// URL of the uploaded S3 object
|
// URL of the uploaded S3 object
|
||||||
url: out
|
url: out
|
||||||
|
|
||||||
|
// Always write the object to S3
|
||||||
|
always?: bool
|
||||||
|
|
||||||
out: string
|
out: string
|
||||||
aws.#Script & {
|
aws.#Script & {
|
||||||
|
if always != _|_ {
|
||||||
|
"always": always
|
||||||
|
}
|
||||||
files: {
|
files: {
|
||||||
if sourceInline != _|_ {
|
if sourceInline != _|_ {
|
||||||
"/inputs/source": sourceInline
|
"/inputs/source": sourceInline
|
||||||
|
Reference in New Issue
Block a user