trigger build on test branch
Build and Push Docker Image / build-and-push (push) Failing after 10s
Details
Build and Push Docker Image / build-and-push (push) Failing after 10s
Details
This commit is contained in:
parent
f9deb0aff0
commit
5789344eed
|
@ -3,6 +3,7 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
- gitea_actions
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
|
@ -21,13 +22,13 @@ jobs:
|
||||||
- name: Generate tag for the image
|
- name: Generate tag for the image
|
||||||
run: |
|
run: |
|
||||||
SHA_TAG=${CI_COMMIT_SHA::5}
|
SHA_TAG=${CI_COMMIT_SHA::5}
|
||||||
REPO_NAME=$(basename $CI_REPOSITORY)
|
IMAGE_TAG_SHA="${{ secrets.CR_endpoint }}/${{ secrets.CR_username }}/${CI_PROJECT_NAME}:latest"
|
||||||
IMAGE_TAG_SHA="${{ secrets.CR_endpoint }}/${{ secrets.CR_username }}/${REPO_NAME}:${SHA_TAG}"
|
echo "${SHA_TAG}"
|
||||||
# IMAGE_TAG_LATEST="${{ secrets.CR_endpoint }}/${{ secrets.CR_username }}/${REPO_NAME}:latest"
|
# IMAGE_TAG_LATEST="${{ secrets.CR_endpoint }}/${{ secrets.CR_username }}/${CI_PROJECT_NAME}:latest"
|
||||||
|
|
||||||
|
|
||||||
- name: Build container image
|
- name: Build container image
|
||||||
run: docker build -t $IMAGE_TAG_SHA . # -t $IMAGE_TAG_LATEST .
|
run: docker build -t $IMAGE_TAG_SHA .
|
||||||
|
|
||||||
- name: Push Docker image to Container Registry
|
- name: Push Docker image to Container Registry
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in New Issue