Serge Bazanski | b9ed123 | 2021-05-12 21:05:05 +0000 | [diff] [blame] | 1 | load("@io_bazel_rules_docker//container:container.bzl", "container_image", "container_push") |
| 2 | load("@io_bazel_rules_go//go:def.bzl", "go_library") |
| 3 | load("@io_bazel_rules_go//extras:embed_data.bzl", "go_embed_data") |
| 4 | |
| 5 | go_embed_data( |
| 6 | name = "static", |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame] | 7 | srcs = [ |
| 8 | "cebula2020.jpeg", |
| 9 | "hotel-orle.jpg", |
| 10 | "index.html", |
| 11 | "style/main.css", |
| 12 | ], |
Serge Bazanski | b9ed123 | 2021-05-12 21:05:05 +0000 | [diff] [blame] | 13 | package = "static", |
| 14 | ) |
| 15 | |
| 16 | # keep |
| 17 | go_library( |
| 18 | name = "static_go", |
| 19 | srcs = [":static"], |
| 20 | importpath = "code.hackerspace.pl/hscloud/hswaw/cebulacamp/landing/static", |
| 21 | visibility = ["//visibility:public"], |
| 22 | ) |
| 23 | |
| 24 | container_image( |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame] | 25 | name = "latest", |
| 26 | base = "@prodimage-bionic//image", |
Serge Bazanski | b9ed123 | 2021-05-12 21:05:05 +0000 | [diff] [blame] | 27 | directory = "/hscloud/hswaw/cebulacamp/landing", |
| 28 | entrypoint = ["/hscloud/hswaw/cebulacamp/landing/backend"], |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame] | 29 | files = ["//hswaw/cebulacamp/landing/backend"], |
Serge Bazanski | b9ed123 | 2021-05-12 21:05:05 +0000 | [diff] [blame] | 30 | ) |
| 31 | |
| 32 | container_push( |
| 33 | name = "push", |
Serge Bazanski | b9ed123 | 2021-05-12 21:05:05 +0000 | [diff] [blame] | 34 | format = "Docker", |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame] | 35 | image = ":latest", |
Serge Bazanski | b9ed123 | 2021-05-12 21:05:05 +0000 | [diff] [blame] | 36 | registry = "registry.k0.hswaw.net", |
| 37 | repository = "q3k/cebulacamp-landing", |
| 38 | tag = "{BUILD_TIMESTAMP}-{STABLE_GIT_COMMIT}", |
| 39 | ) |