Skip to content

Commit

Permalink
Combine steps back in different fashion
Browse files Browse the repository at this point in the history
  • Loading branch information
alexhung committed Jul 8, 2024
1 parent 9953892 commit 3a62bee
Showing 1 changed file with 11 additions and 19 deletions.
30 changes: 11 additions & 19 deletions .github/workflows/acceptance-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,30 +63,22 @@ jobs:
uses: goreleaser/goreleaser-action@v6
with:
install-only: true
- name: Create Artifactory data directories
run: |
mkdir -p ${{ runner.temp }}/artifactory/extra_conf
mkdir -p ${{ runner.temp }}/artifactory/var/etc
mkdir -p ${{ runner.temp }}/artifactory-2/extra_conf
mkdir -p ${{ runner.temp }}/artifactory-2/var/etc
- name: Set Join Key in system.yaml for artifactory
- name: Create Artifactory data directories and set Join Key in system.yaml for artifactory
env:
ARTIFACTORY_LICENSE: ${{ secrets.ARTIFACTORY_LICENSE }}
uses: mikefarah/yq@master
with:
cmd: |
mkdir -p ${{ runner.temp }}/artifactory/extra_conf
mkdir -p ${{ runner.temp }}/artifactory/var/etc
mkdir -p ${{ runner.temp }}/artifactory-2/extra_conf
mkdir -p ${{ runner.temp }}/artifactory-2/var/etc
cat ${{ github.workspace }}/scripts/system.yaml | yq '.shared += {"security": {"joinKey": "${{ secrets.ARTIFACTORY_JOIN_KEY }}"}}' > ${{ runner.temp }}/artifactory/var/etc/system.yaml
- name: Set Join Key in system.yaml for artifactory-2
uses: mikefarah/yq@master
with:
cmd: |
cat ${{ github.workspace }}/scripts/system.yaml | yq '.shared += {"security": {"joinKey": "${{ secrets.ARTIFACTORY_JOIN_KEY }}"}}' > ${{ runner.temp }}/artifactory-2/var/etc/system.yaml
- name: Copy Artifactory install data
env:
ARTIFACTORY_LICENSE: ${{ secrets.ARTIFACTORY_LICENSE }}
run: |
echo $ARTIFACTORY_LICENSE > ${{ runner.temp }}/artifactory/extra_conf/artifactory.lic
sudo chown -R 1030:1030 ${{ runner.temp }}/artifactory/var
echo $ARTIFACTORY_LICENSE > ${{ runner.temp }}/artifactory-2/extra_conf/artifactory.lic
sudo chown -R 1030:1030 ${{ runner.temp }}/artifactory-2/var
echo $ARTIFACTORY_LICENSE > ${{ runner.temp }}/artifactory/extra_conf/artifactory.lic
sudo chown -R 1030:1030 ${{ runner.temp }}/artifactory/var
echo $ARTIFACTORY_LICENSE > ${{ runner.temp }}/artifactory-2/extra_conf/artifactory.lic
sudo chown -R 1030:1030 ${{ runner.temp }}/artifactory-2/var
- name: Run Artifactory container
id: run_artifactory_container
run: |
Expand Down

0 comments on commit 3a62bee

Please sign in to comment.