Compare commits
4
Commits
51c584056b
...
1.0.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
045faf59a4 | ||
|
|
152bee732f | ||
|
|
99188454e9 | ||
|
|
80e99b7de8 |
+15
-1
@@ -24,6 +24,20 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- mix test
|
- mix test
|
||||||
|
|
||||||
|
- name: build the image
|
||||||
|
image: plugins/kaniko
|
||||||
|
settings:
|
||||||
|
username: kklochko
|
||||||
|
password:
|
||||||
|
from_secret: REGISTRY_PASSWORD
|
||||||
|
repo: git.kklochko.space/kklochko/decentralised_book_index
|
||||||
|
registry: git.kklochko.space
|
||||||
|
tags:
|
||||||
|
- latest
|
||||||
|
- ${DRONE_TAG}
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: mix
|
- name: mix
|
||||||
temp: {}
|
temp: {}
|
||||||
@@ -34,4 +48,4 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
POSTGRES_DB: decentralised_book_index_dev
|
POSTGRES_DB: decentralised_book_index_dev
|
||||||
POSTGRES_USER: postgres
|
POSTGRES_USER: postgres
|
||||||
POSTGRES_PASSWORD: postgres
|
POSTGRES_PASSWORD: postgres
|
||||||
|
|||||||
@@ -20,8 +20,6 @@ defmodule DecentralisedBookIndexWeb.Components.MyComponents.SelectedAuthor do
|
|||||||
|
|
||||||
errors =
|
errors =
|
||||||
if Phoenix.Component.used_input?(assigns.author_form), do: assigns.author_form.errors, else: []
|
if Phoenix.Component.used_input?(assigns.author_form), do: assigns.author_form.errors, else: []
|
||||||
IO.inspect("errors")
|
|
||||||
IO.inspect(errors)
|
|
||||||
|
|
||||||
assigns =
|
assigns =
|
||||||
assigns
|
assigns
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ defmodule DecentralisedBookIndexWeb.Components.MyPartials.Navbar do
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
<%= if @current_user != nil and Role.can_administrate?(@current_user.role) do %>
|
<%= if @current_user != nil and Role.can_moderate?(@current_user.role) do %>
|
||||||
<li>
|
<li>
|
||||||
<a
|
<a
|
||||||
href={~p"/servers/"}
|
href={~p"/servers/"}
|
||||||
|
|||||||
@@ -158,9 +158,6 @@ defmodule DecentralisedBookIndexWeb.AuthorLive.FormComponent do
|
|||||||
end
|
end
|
||||||
|
|
||||||
def handle_event("select-author-alias", %{"author-alias" => author_alias_id}, socket) do
|
def handle_event("select-author-alias", %{"author-alias" => author_alias_id}, socket) do
|
||||||
IO.inspect("book_editions_registry_id")
|
|
||||||
IO.inspect(author_alias_id)
|
|
||||||
|
|
||||||
socket =
|
socket =
|
||||||
socket
|
socket
|
||||||
|> update(:form, fn form ->
|
|> update(:form, fn form ->
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ defmodule DecentralisedBookIndex.MixProject do
|
|||||||
def project do
|
def project do
|
||||||
[
|
[
|
||||||
app: :decentralised_book_index,
|
app: :decentralised_book_index,
|
||||||
version: "0.1.0",
|
version: "1.0.0",
|
||||||
elixir: "~> 1.14",
|
elixir: "~> 1.14",
|
||||||
elixirc_paths: elixirc_paths(Mix.env()),
|
elixirc_paths: elixirc_paths(Mix.env()),
|
||||||
start_permanent: Mix.env() == :prod,
|
start_permanent: Mix.env() == :prod,
|
||||||
|
|||||||
Reference in New Issue
Block a user