forked from kamba4/sunders
feat: Pushes image to repository
Some checks failed
Build Hello World Image / build (push) Failing after 10s
Some checks failed
Build Hello World Image / build (push) Failing after 10s
This commit is contained in:
parent
2846cecc86
commit
fe89f21a33
1 changed files with 13 additions and 1 deletions
|
@ -20,3 +20,15 @@ jobs:
|
|||
run: |
|
||||
echo -e 'FROM alpine\nCMD echo Hello, World!' > Dockerfile
|
||||
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
|
Loading…
Add table
Add a link
Reference in a new issue