fix(ci): forgejo being picky
Some checks failed
Build friends-api / build-and-push (push) Failing after 5s
Some checks failed
Build friends-api / build-and-push (push) Failing after 5s
This commit is contained in:
parent
62b64ca706
commit
b9f1b42725
1 changed files with 4 additions and 4 deletions
|
|
@ -14,10 +14,10 @@ jobs:
|
||||||
|
|
||||||
- name: Build and push docker image
|
- name: Build and push docker image
|
||||||
run: |
|
run: |
|
||||||
echo "${{ secrets.GITHUB_TOKEN }}" | docker login "${{ gitea.server_url }}" -u "${{ gitea.actor }}" --password-stdin
|
echo "${{ secrets.PACKAGE_PWD }}" | docker login "${{ forgejo.server_url }}" -u "${{ secrets.PACKAGE_USER }}" --password-stdin
|
||||||
|
|
||||||
IMAGE_BASE="${{ gitea.server_url }}/${{ gitea.repository }}"
|
IMAGE_BASE="${{ forgejo.server_url }}/${{ forgejo.repository }}"
|
||||||
|
|
||||||
docker build -t "${IMAGE_BASE}:latest" -t "${IMAGE_BASE}:${{ gitea.sha }}" .
|
docker build -t "${IMAGE_BASE}:latest" -t "${IMAGE_BASE}:${{ forgejo.sha }}" .
|
||||||
docker push "${IMAGE_BASE}:latest"
|
docker push "${IMAGE_BASE}:latest"
|
||||||
docker push "${IMAGE_BASE}:${{ gitea.sha }}"
|
docker push "${IMAGE_BASE}:${{ forgejo.sha }}"
|
||||||
Loading…
Reference in a new issue