diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml index 1a11074..e33362a 100644 --- a/.forgejo/workflows/test.yml +++ b/.forgejo/workflows/test.yml @@ -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 . \ No newline at end of file + 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 \ No newline at end of file