feat: Pushes image to repository
Some checks failed
Build Hello World Image / build (push) Failing after 10s

This commit is contained in:
Vincent Mahnke 2025-10-11 19:37:49 +02:00
commit fe89f21a33

View file

@ -19,4 +19,16 @@ jobs:
- name: Build Hello World Docker image
run: |
echo -e 'FROM alpine\nCMD echo Hello, World!' > Dockerfile
docker build -t hello-world:latest .
docker build -t hello-world:latest .
- name: Login to Container Registry
uses: docker/login-action@v3
with:
registry: git.hamburg.ccc.de
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Push Docker image to Container Registry
run: |
docker tag hello-world:latest git.hamburg.ccc.de/vimaster/hello-world:latest
docker push git.hamburg.ccc.de/vimaster/hello-world:latest