Update workflow to push Docker image to registry
Build and Validate / build-and-test (push) Failing after 19s
Build and Validate / build-and-test (push) Failing after 19s
This commit is contained in:
@@ -31,8 +31,18 @@ jobs:
|
||||
echo "Web application loaded successfully. HTTP status: $HTTP_STATUS"
|
||||
fi
|
||||
|
||||
- name: Cleanup
|
||||
- name: Cleanup Test Container
|
||||
if: always()
|
||||
run: |
|
||||
docker stop todoizer || true
|
||||
docker rm todoizer || true
|
||||
|
||||
- name: Login to Gitea Container Registry
|
||||
if: success()
|
||||
run: echo "${{ github.token }}" | docker login gitea.krisforbes.ca -u ${{ github.actor }} --password-stdin
|
||||
|
||||
- name: Push Docker image
|
||||
if: success()
|
||||
run: |
|
||||
docker tag todoizer-app:latest gitea.krisforbes.ca/krisf/todoizer:latest
|
||||
docker push gitea.krisforbes.ca/krisf/todoizer:latest
|
||||
|
||||
Reference in New Issue
Block a user