Skip to content

Commit

Permalink
build(workflows): enable association of branch, jar and container image
Browse files Browse the repository at this point in the history
Associatability is achieved by naming convetion based on the name of the source branch
  • Loading branch information
GiugAles committed Jan 24, 2024
1 parent a99463f commit bc7f33d
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 7 deletions.
33 changes: 26 additions & 7 deletions .github/workflows/containerize.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,28 @@ env:
YGGDRASIL_VERSION: 0.0.0

jobs:
set-vars:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.gen_version.outputs.VERSION }}
steps:
- name: set values
id: gen_version
run: |
echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
- name: character-replacement-test
run: |
REPO=$GITHUB_REPOSITORY
DB_NAME="${REPO//-/_}"
echo $DB_NAME
- name: Use the value
# this sets environment variables for this step
env:
VERSION: ${{ steps.gen_version.outputs.VERSION }}
run: |
echo "${VERSION}"
build-and-test:
runs-on: ubuntu-latest
defaults:
Expand All @@ -31,7 +53,6 @@ jobs:
TERM: dumb
ports:
- "8899:8080"
- "8900:8088"
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -49,12 +70,10 @@ jobs:
with:
name: check-results
path: |
cartago/build/reports
http/build/reports
messages/build/reports
store/build/reports
utils/build/reports
websub/build/reports
yggdrasil-cartago/build/reports
yggdrasil-core/build/reports
yggdrasil-utils/build/reports
yggdrasil-websub/build/reports
build/reports
if-no-files-found: error
- name: Make structure for app
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,12 @@
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.junit.jupiter.api.Disabled;

@SuppressWarnings("PMD.JUnitTestsShouldIncludeAssert")
@ExtendWith(VertxExtension.class)
@Disabled
//TODO: Test is flaky see https://github.com/Interactions-HSG/yggdrasil/issues/35
public class EnvironmentConfigurationTest {
private static final String SUB_WORKSPACE_NAME = "sub";
private static final String COUNTER_ARTIFACT_NAME = "c0";
Expand Down

0 comments on commit bc7f33d

Please sign in to comment.