Add git SSH to maven-publish.yml
This commit is contained in:
parent
a9b4efbac7
commit
df38304a04
20
.github/workflows/maven-publish.yml
vendored
20
.github/workflows/maven-publish.yml
vendored
@ -42,6 +42,16 @@ jobs:
|
||||
java-version: '21'
|
||||
distribution: 'corretto'
|
||||
|
||||
- name: Config git and ssh
|
||||
run: |
|
||||
git config --global user.email "gitea@pravilanovait.hr"
|
||||
git config --global user.name "Gitea Actions"
|
||||
echo -e "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
||||
chown 600 ~/.ssh/id_rsa
|
||||
touch ~/.ssh/known_hosts
|
||||
ssh-keygen -R devops.pravilanovait.hr
|
||||
ssh-keyscan -t rsa devops.pravilanovait.hr > ~/.ssh/known_hosts
|
||||
|
||||
- name: Clone curh schemas
|
||||
run: |
|
||||
git clone git@devops.pravilanovait.hr:curh-backend/curh-schemas.git
|
||||
@ -66,16 +76,6 @@ jobs:
|
||||
env:
|
||||
SETTINGS_XML: ${{ secrets.MVN_SETTINGS_XML }}
|
||||
|
||||
- name: Config git and ssh
|
||||
run: |
|
||||
git config --global user.email "gitea@pravilanovait.hr"
|
||||
git config --global user.name "Gitea Actions"
|
||||
echo -e "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
||||
chown 600 ~/.ssh/id_rsa
|
||||
touch ~/.ssh/known_hosts
|
||||
ssh-keygen -R devops.pravilanovait.hr
|
||||
ssh-keyscan -t rsa devops.pravilanovait.hr > ~/.ssh/known_hosts
|
||||
|
||||
- name: Deploy artifacts
|
||||
run: |
|
||||
mvn clean deploy -U --file pom.xml -DrepositoryId=pravila--pravila-maven
|
||||
|
Loading…
x
Reference in New Issue
Block a user