first cicd
CICD / Explore-Gitea-Actions (push) Failing after 42s
Details
CICD / Explore-Gitea-Actions (push) Failing after 42s
Details
This commit is contained in:
parent
3dfd5bdd7a
commit
31dc648a65
|
@ -0,0 +1,34 @@
|
||||||
|
name: CICD
|
||||||
|
run-name: ${{ gitea.actor }} triggered CICD
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Explore-Gitea-Actions:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Build Dockerfile
|
||||||
|
run: |
|
||||||
|
export BUILDIMGTAG="`cat Dockerfile | tail -n1 | sed 's/^.*\///g'`"
|
||||||
|
docker build -t $BUILDIMGTAG .
|
||||||
|
docker images
|
||||||
|
- name: Tag and Push (Harbor)
|
||||||
|
run: |
|
||||||
|
export BUILDIMGTAG="`cat Dockerfile | tail -n1 | sed 's/^.*\///g'`"
|
||||||
|
export FINALBUILDTAG="`cat Dockerfile | tail -n1 | sed 's/^#//g'`"
|
||||||
|
docker tag $BUILDIMGTAG $FINALBUILDTAG
|
||||||
|
docker images
|
||||||
|
echo $CR_PAT | docker login harbor.freshbrewed.science -u $CR_USER --password-stdin
|
||||||
|
docker push $FINALBUILDTAG
|
||||||
|
env: # Or as an environment variable
|
||||||
|
CR_PAT: ${{ secrets.CR_PAT }}
|
||||||
|
CR_USER: ${{ secrets.CR_USER }}
|
||||||
|
- name: Tag and Push (Dockerhub)
|
||||||
|
run: |
|
||||||
|
export BUILDIMGTAG="`cat Dockerfile | tail -n1 | sed 's/^.*\///g'`"
|
||||||
|
docker tag $BUILDIMGTAG $DHUSER/$BUILDIMGTAG
|
||||||
|
docker images
|
||||||
|
echo $DHPAT | docker login -u $DHUSER --password-stdin
|
||||||
|
docker push $DHUSER/$BUILDIMGTAG
|
||||||
|
env: # Or as an environment variable
|
||||||
|
DHPAT: ${{ secrets.DHPAT }}
|
||||||
|
DHUSER: ${{ secrets.DHUSER }}
|
|
@ -19,4 +19,5 @@ RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
CMD ["python", "main.py"]
|
CMD ["python", "main.py"]
|
||||||
|
#harbor.freshbrewed.science/library/vikunjamcp:0.10
|
Loading…
Reference in New Issue