Make docker build use `latest` tag

next
Sayan Nandan 4 years ago
parent fc274ff95f
commit 432e19dd71
No known key found for this signature in database
GPG Key ID: C31EFD7DDA12AEE0

@ -33,7 +33,9 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: terrabasedb/tdb
tags: latest
tag_with_ref: true
- name: Log into GitHub Container Registry
run: echo "${{ secrets.CR_PAT }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin

@ -30,19 +30,6 @@ use std::net::{IpAddr, Ipv4Addr, Ipv6Addr};
use tokio::net::ToSocketAddrs;
use toml;
/// Gets a `toml` file from `WORKSPACEROOT/examples/config-files`
#[cfg(test)]
fn get_toml_from_examples_dir(filename: String) -> TResult<String> {
use std::path;
let curdir = std::env::current_dir().unwrap();
let workspaceroot = curdir.ancestors().nth(1).unwrap();
let mut fileloc = path::PathBuf::from(workspaceroot);
fileloc.push("examples");
fileloc.push("config-files");
fileloc.push(filename);
Ok(fs::read_to_string(fileloc)?)
}
/// This struct is an _object representation_ used for parsing the TOML file
#[derive(Deserialize, Debug, PartialEq)]
pub struct Config {
@ -162,6 +149,18 @@ fn test_config_toml_okayport() {
}
);
}
/// Gets a `toml` file from `WORKSPACEROOT/examples/config-files`
#[cfg(test)]
fn get_toml_from_examples_dir(filename: String) -> TResult<String> {
use std::path;
let curdir = std::env::current_dir().unwrap();
let workspaceroot = curdir.ancestors().nth(1).unwrap();
let mut fileloc = path::PathBuf::from(workspaceroot);
fileloc.push("examples");
fileloc.push("config-files");
fileloc.push(filename);
Ok(fs::read_to_string(fileloc)?)
}
#[test]
#[cfg(test)]

Loading…
Cancel
Save