Skip to content

Commit

Permalink
2.4.24.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin Przepiorowski committed Sep 19, 2024
2 parents 037e0ac + 03ea793 commit cf081f1
Show file tree
Hide file tree
Showing 6 changed files with 235 additions and 26 deletions.
96 changes: 80 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
mv dxtoolkit.tar.gz ${{ env.FILENAME }}
- name: Upload centos 7
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: cento7build
path: ${{ env.FILENAME }}
Expand Down Expand Up @@ -119,7 +119,7 @@ jobs:
mv dxtoolkit.tar.gz ${{ env.FILENAME }}
- name: Upload ubuntu
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: ubuntubuild
path: ${{ env.FILENAME }}
Expand Down Expand Up @@ -165,7 +165,7 @@ jobs:
mv dxtoolkit.tar.gz ${{ env.FILENAME }}
- name: Upload centos 6
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: cento6build
path: ${{ env.FILENAME }}
Expand Down Expand Up @@ -216,7 +216,7 @@ jobs:
mv dxtoolkit.tar.gz ${{ env.FILENAME }}
- name: Upload oel 8
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: oel8build
path: ${{ env.FILENAME }}
Expand Down Expand Up @@ -278,7 +278,7 @@ jobs:
shell: powershell

- name: Upload windows
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: windowsbuild
path: ${{ env.FILENAME }}
Expand Down Expand Up @@ -386,7 +386,7 @@ jobs:
tar czvf ${{ env.FILENAME }} dxtoolkit2/
- name: Upload OSX
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: osxbuild
path: ${{ env.FILENAME }}
Expand Down Expand Up @@ -493,11 +493,68 @@ jobs:
tar czvf ${{ env.FILENAME }} dxtoolkit2/
- name: Upload OSX
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: osxbuild
path: ${{ env.FILENAME }}

ubuntu22:
needs: [centos7]
runs-on: ubuntu-latest

steps:
- name: checkout dxtoolkit code
uses: actions/checkout@master

- name: add version
run: |
mkdir dxtoolkit2
chmod 777 dxtoolkit2
cd ./lib
mv Toolkit_helpers.pm Toolkit_helpers.orig.pm
cat Toolkit_helpers.orig.pm | sed -r -e "s/([[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+\.?[[:digit:]]?)/\1-dev-${GITHUB_SHA}/" > Toolkit_helpers.pm
grep "version" Toolkit_helpers.pm
- name: Set up a Perl container
#uses: pioro/dxtoolkit@develop
uses: docker://pioro/dxperlubuntu22:526
with:
ENCKEY: ${{ secrets.ENCKEY }}

- name: Get the version
id: get_version
run: |
if (echo ${GITHUB_REF} | grep "/tags/" > /dev/null); then
SOURCE_TAG=${GITHUB_REF#refs/tags/}
elif (echo ${GITHUB_REF} | grep "/heads/" > /dev/null); then
SOURCE_TAG=${GITHUB_REF#refs/heads/}
else
exit 1
fi
FILENAME="dxtoolkit2-${SOURCE_TAG}-ubuntu2204-installer.tar.gz"
echo SOURCE_TAG=$SOURCE_TAG >> $GITHUB_ENV
echo FILENAME=$FILENAME >> $GITHUB_ENV
- name: add examples
run: |
gzip -d dxtoolkit.tar.gz
cp bin/dxtools.conf.example dxtoolkit2/dxtools.conf.example
cp bin/dxusers.csv.example dxtoolkit2/dxusers.csv.example
tar -rvf dxtoolkit.tar dxtoolkit2/dxtools.conf.example dxtoolkit2/dxusers.csv.example
gzip dxtoolkit.tar
- name: compress toolkit
run: |
mv dxtoolkit.tar.gz ${{ env.FILENAME }}
- name: Upload ubuntu
uses: actions/upload-artifact@v4
with:
name: ubuntu22build
path: ${{ env.FILENAME }}




amazon2023:
needs: [centos7]
Expand Down Expand Up @@ -550,7 +607,7 @@ jobs:
mv dxtoolkit.tar.gz ${{ env.FILENAME }}
- name: Upload amazon 2023
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: amazon2023
path: ${{ env.FILENAME }}
Expand All @@ -564,41 +621,46 @@ jobs:
steps:

- name: Download centos7
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4
with:
name: cento7build

- name: Download centos6
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4
with:
name: cento6build

- name: Download windows
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4
with:
name: windowsbuild

- name: Download ubuntu
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4
with:
name: ubuntubuild

- name: Download osx
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4
with:
name: osxbuild


- name: Download OEL8
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4
with:
name: oel8build

- name: Download Amazon 2023
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4
with:
name: amazon2023

- name: Download Amazon 2023
uses: actions/download-artifact@v4
with:
name: ubuntu22build

- name: Say
run: |
echo "HELLO"
Expand All @@ -616,6 +678,7 @@ jobs:
FILENAMEWIN="dxtoolkit2-${SOURCE_TAG}-win64-installer.zip"
FILENAMEOSX="dxtoolkit2-${SOURCE_TAG}-osx.tar.gz"
FILENAMEAMZ="dxtoolkit2-${SOURCE_TAG}-amazon2023-installer.tar.gz"
FILENAMEUBUNTU22="dxtoolkit2-${SOURCE_TAG}-ubuntu2204-installer.tar.gz"
echo SOURCE_TAG=$SOURCE_TAG >> $GITHUB_ENV
echo FILENAMERH7=$FILENAMERH7 >> $GITHUB_ENV
Expand All @@ -625,6 +688,7 @@ jobs:
echo FILENAMEWIN=$FILENAMEWIN >> $GITHUB_ENV
echo FILENAMEOSX=$FILENAMEOSX >> $GITHUB_ENV
echo FILENAMEAMZ=$FILENAMEAMZ >> $GITHUB_ENV
echo FILENAMEUBUNTU22=$FILENAMEUBUNTU22 >> $GITHUB_ENV
- name: Create Release
id: create_release
Expand All @@ -634,5 +698,5 @@ jobs:
name: Release ${{ env.SOURCE_TAG }}
draft: true
prerelease: true
artifacts: "cento7build/${{ env.FILENAMERH7 }},cento6build/${{ env.FILENAMERH6 }},oel8build/${{ env.FILENAMERH8 }},ubuntubuild/${{ env.FILENAMEUBUNTU }},windowsbuild/${{ env.FILENAMEWIN }},osxbuild/${{ env.FILENAMEOSX }},amazon2023/${{ env.FILENAMEAMZ }}"
artifacts: "cento7build/${{ env.FILENAMERH7 }},cento6build/${{ env.FILENAMERH6 }},oel8build/${{ env.FILENAMERH8 }},ubuntubuild/${{ env.FILENAMEUBUNTU }},windowsbuild/${{ env.FILENAMEWIN }},osxbuild/${{ env.FILENAMEOSX }},amazon2023/${{ env.FILENAMEAMZ }},cento7build/${{ env.FILENAMEUBUNTU22 }}"
tag: ${{ env.SOURCE_TAG }}
76 changes: 67 additions & 9 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
mv dxtoolkit.tar.gz ${{ env.FILENAME }}
- name: Upload centos 7
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: cento7build
path: ${{ env.FILENAME }}
Expand Down Expand Up @@ -152,11 +152,69 @@ jobs:
mv dxtoolkit.tar.gz ${{ env.FILENAME }}
- name: Upload ubuntu
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: ubuntubuild
path: ${{ env.FILENAME }}


ubuntu22:
needs: [centos7]
runs-on: ubuntu-latest

steps:
- name: checkout dxtoolkit code
uses: actions/checkout@master

- name: add version
run: |
mkdir dxtoolkit2
chmod 777 dxtoolkit2
cd ./lib
mv Toolkit_helpers.pm Toolkit_helpers.orig.pm
cat Toolkit_helpers.orig.pm | sed -r -e "s/([[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+\.?[[:digit:]]?)/\1-dev-${GITHUB_SHA}/" > Toolkit_helpers.pm
grep "version" Toolkit_helpers.pm
- name: Set up a Perl container
#uses: pioro/dxtoolkit@develop
uses: docker://pioro/dxperlubuntu22:526
with:
ENCKEY: ${{ secrets.ENCKEY }}

- name: Get the version
id: get_version
run: |
if (echo ${GITHUB_REF} | grep "/tags/" > /dev/null); then
SOURCE_TAG=${GITHUB_REF#refs/tags/}
elif (echo ${GITHUB_REF} | grep "/heads/" > /dev/null); then
SOURCE_TAG=${GITHUB_REF#refs/heads/}
else
exit 1
fi
FILENAME="dxtoolkit2-${SOURCE_TAG}-ubuntu2204-installer.tar.gz"
echo SOURCE_TAG=$SOURCE_TAG >> $GITHUB_ENV
echo FILENAME=$FILENAME >> $GITHUB_ENV
- name: add examples
run: |
gzip -d dxtoolkit.tar.gz
cp bin/dxtools.conf.example dxtoolkit2/dxtools.conf.example
cp bin/dxusers.csv.example dxtoolkit2/dxusers.csv.example
tar -rvf dxtoolkit.tar dxtoolkit2/dxtools.conf.example dxtoolkit2/dxusers.csv.example
gzip dxtoolkit.tar
- name: compress toolkit
run: |
mv dxtoolkit.tar.gz ${{ env.FILENAME }}
- name: Upload ubuntu
uses: actions/upload-artifact@v4
with:
name: ubuntu22build
path: ${{ env.FILENAME }}



centos6:
needs: [centos7]
runs-on: ubuntu-latest
Expand Down Expand Up @@ -207,7 +265,7 @@ jobs:
mv dxtoolkit.tar.gz ${{ env.FILENAME }}
- name: Upload centos 6
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: cento6build
path: ${{ env.FILENAME }}
Expand Down Expand Up @@ -263,7 +321,7 @@ jobs:
mv dxtoolkit.tar.gz ${{ env.FILENAME }}
- name: Upload oel 8
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: oel8build
path: ${{ env.FILENAME }}
Expand Down Expand Up @@ -310,7 +368,7 @@ jobs:
shell: powershell

# - name: Upload enc
# uses: actions/upload-artifact@v1
# uses: actions/upload-artifact@v4
# with:
# name: windowsbuild-enc
# path: D:\a\dxtoolkit\dxtoolkit\lib\dbutils.pm
Expand Down Expand Up @@ -343,7 +401,7 @@ jobs:
shell: powershell

- name: Upload windows
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: windowsbuild
path: ${{ env.FILENAME }}
Expand Down Expand Up @@ -471,7 +529,7 @@ jobs:
tar czvf ${{ env.FILENAME }} dxtoolkit2/
- name: Upload OSX
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: osxbuild
path: ${{ env.FILENAME }}
Expand Down Expand Up @@ -598,7 +656,7 @@ jobs:
tar czvf ${{ env.FILENAME }} dxtoolkit2/
- name: Upload OSX
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: osxbuild
path: ${{ env.FILENAME }}
Expand Down Expand Up @@ -656,7 +714,7 @@ jobs:
mv dxtoolkit.tar.gz ${{ env.FILENAME }}
- name: Upload amazon 2023
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: amazon2023
path: ${{ env.FILENAME }}
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 2.4.24.2

### Added
- Ubuntu 22 build

## 2.4.24.1

### Changes
Expand Down
37 changes: 37 additions & 0 deletions build/ubuntu22/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
FROM ubuntu:22.04

RUN apt-get update \
&& apt-get install -y libpar-packer-perl \
&& apt-get install -y libjson-pp-perl \
&& apt-get install -y libdate-manip-perl \
&& apt-get install -y libdatetime-format-dateparse-perl \
&& apt-get install -y libcrypt-cbc-perl \
&& apt-get install -y libcrypt-blowfish-perl \
&& apt-get install -y libtext-csv-perl \
&& apt-get install -y libtry-tiny-perl \
&& apt-get install -y libparse-http-useragent-perl \
&& apt-get install -y libnet-ssleay-perl \
&& apt-get install -y libio-socket-ssl-perl \
&& apt-get install -y libfilter-perl \
&& apt-get install -y libterm-readkey-perl \
&& apt-get install -y cpanminus \
&& apt-get install -y make \
&& apt-get install -y gcc \
&& apt-get install -y libssl-dev \
&& apt-get install -y libwww-perl \
&& cpanm DateTime::Event::Cron::Quartz \
&& cpanm Log::Syslog::[email protected] \
&& cpanm Filter::Crypto::Decrypt

RUN mkdir -p /github/workspace
RUN mkdir -p /github/home
RUN mkdir -p /github/workflow
COPY entrypoint.sh /entrypoint.sh
WORKDIR /github/workspace
RUN chmod +x /entrypoint.sh


ENTRYPOINT ["/entrypoint.sh"]



Loading

0 comments on commit cf081f1

Please sign in to comment.