Skip to content

Commit

Permalink
experiment 2
Browse files Browse the repository at this point in the history
  • Loading branch information
GiugAles committed Jan 24, 2024
1 parent b91f70b commit b50e209
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/containerize.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,9 @@ jobs:
id: gen_version
run: |
echo "VERSION=${GITHUB_REF_NAME////_}" >> $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:
needs: [set-vars]
runs-on: ubuntu-latest
defaults:
run:
Expand All @@ -51,6 +40,7 @@ jobs:
# Tell scripts assume an non-interactive shell. This keeps logs clean
# in case of e.g. progress bars that would cause one line for each state, otherwise
TERM: dumb
YGGDRASIL_VERSION: "${{ needs.set-vars.outputs.VERSION }}"
ports:
- "8899:8080"
steps:
Expand Down Expand Up @@ -89,12 +79,14 @@ jobs:
if-no-files-found: error

containerize:
needs: build-and-test
needs: [set-vars, build-and-test]
environment: "containerized_debugging"
runs-on: ubuntu-latest
defaults:
run:
shell: bash
env:
YGGDRASIL_VERSION: "${{ needs.set-vars.outputs.VERSION }}"
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit b50e209

Please sign in to comment.