Skip to content

Commit

Permalink
285 - test pypi deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-gary committed Aug 26, 2024
1 parent d9a485c commit c2e213e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/build2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,16 +88,14 @@ jobs:
- name: Create Docker Builder Config File
run: sudo touch /etc/buildkitd.toml
# Run build with the gh-build profile

# - name: Create settings.xml
# run: |
# echo "<settings><servers><server><id>ghcr.io</id><username>d-ryan-ashcraft</username><password>${{ secrets.GHCR_IO_TOKEN }}</password></server><server><id>pypix</id><username>${{ secrets.PYPI_USENAME }}</username><password>${{ secrets.PYPI_TOKEN }}</password></server><server><id>pypi</id><username>${{ secrets.TEST_PYPI_USENAME }}</username><password>${{ secrets.TEST_PYPI_TOKEN }}</password></server> </servers></settings>" > $HOME/.m2/settings.xml
- name: Create settings.xml
run: |
echo "<settings><servers><server><id>ghcr.io</id><username>d-ryan-ashcraft</username><password>${{ secrets.GHCR_IO_TOKEN }}</password></server><server><id>pypi</id><username>${{ secrets.PYPI_USENAME }}</username><password>${{ secrets.PYPI_TOKEN }}</password></server><server><id>pypi-dev</id><username>foo</username><password>bar</password></server> </servers></settings>" > $HOME/.m2/settings.xml
- name: Build aiSSEMBLE
run: |
docker login registry-1.docker.io/v1 -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_TOKEN }}
mkdir -p ~/.m2
echo "<settings><servers><server><id>ghcr.io</id><username>d-ryan-ashcraft</username><password>${{ secrets.GHCR_IO_TOKEN }}</password></server><server><id>pypi</id><username>foo</username><password>bar</password></server><server><id>dev-pypi</id><username>${{ secrets.TEST_PYPI_USENAME }}</username><password>${{ secrets.TEST_PYPI_TOKEN }}</password></server> </servers></settings>" > $HOME/.m2/settings.xml
./mvnw -B clean deploy -U -f pom.xml -Pci,gh-build --settings $HOME/.m2/settings.xml
# echo "<settings><servers><server><id>ghcr.io</id><username>d-ryan-ashcraft</username><password>${{ secrets.GHCR_IO_TOKEN }}</password></server><server><id>pypi</id><username>foo</username><password>bar</password></server><server><id>dev-pypi</id><username>${{ secrets.TEST_PYPI_USENAME }}</username><password>${{ secrets.TEST_PYPI_TOKEN }}</password></server> </servers></settings>" > $HOME/.m2/settings.xml
# ./mvnw -B clean deploy -U -f extensions/extensions-docker -Pgh-build --settings $HOME/.m2/settings.xml
# ./mvnw -B clean install -U --file pom.xml -Pci,integration-test,gh-build
#NB: The following two explicit cache saves are necessary to ensure caches are saved on build failure,
Expand Down

0 comments on commit c2e213e

Please sign in to comment.