fix: add missing login step for Docker registry and correct SSH agent version
This commit is contained in:
parent
4bdc575892
commit
276c40ce6c
|
|
@ -12,6 +12,9 @@ jobs:
|
|||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Login to registry
|
||||
run: echo "${{ secrets.TOKEN }}" | docker login ${{ secrets.GIT_HOST }} -u ${{ secrets.USERNAME }} --password-stdin
|
||||
|
||||
- name: Build and push app
|
||||
run: |
|
||||
docker build -t ${{ secrets.GIT_HOST }}/${{ gitea.repository }}:app -f app/Dockerfile ./app
|
||||
|
|
@ -25,7 +28,7 @@ jobs:
|
|||
uses: actions/checkout@v4
|
||||
|
||||
- name: Instasll SSH key
|
||||
uses: webfactory/ssh-agent@v.0.9.0
|
||||
uses: webfactory/ssh-agent@v0.9.0
|
||||
with:
|
||||
ssh-private-key: ${{ secrets.DEPLOY_SSH_KEY }}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue