Compare commits

...

2 Commits

Author SHA1 Message Date
13f27ef878
Improved error message when failing to parse ports
All checks were successful
Build and deploy / Build container and manifests (push) Successful in 5m28s
2025-04-17 15:04:53 +02:00
6d70187560
Manifests latest tag now tracks latest tagged release instead of latest build 2025-04-17 14:32:56 +02:00
2 changed files with 4 additions and 4 deletions

View File

@ -76,11 +76,11 @@ jobs:
- name: Push manifests
run: |
flux push artifact oci://$OCI_REPO/manifests:latest \
flux push artifact oci://$OCI_REPO/manifests:${{ gitea.head_ref || gitea.ref_name }} \
--path="./manifests.yaml" \
--source="$(git config --get remote.origin.url)" \
--revision="$(git rev-parse HEAD)" \
$(echo "${{ steps.meta.outputs.labels }}" | sed -e 's/^/-a /')
flux tag artifact oci://$OCI_REPO/manifests:latest \
flux tag artifact oci://$OCI_REPO/manifests:${{ gitea.head_ref || gitea.ref_name }} \
$(echo "${{ steps.meta.outputs.tags }}" | sed -e 's/^.*:/--tag /')

View File

@ -45,10 +45,10 @@ async fn main() -> color_eyre::Result<()> {
};
let http_port = std::env::var("HTTP_PORT")
.map(|port| port.parse())
.map(|port| port.parse().wrap_err_with(|| format!("HTTP_PORT={port}")))
.unwrap_or(Ok(3000))?;
let ssh_port = std::env::var("SSH_PORT")
.map(|port| port.parse())
.map(|port| port.parse().wrap_err_with(|| format!("SSH_PORT={port}")))
.unwrap_or(Ok(2222))?;
let domain =