forked from kamba4/sunders
Some checks failed
Build Hello World Image / build (push) Failing after 9s
34 lines
No EOL
908 B
YAML
34 lines
No EOL
908 B
YAML
name: Build Hello World Image
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Build Hello World Docker image
|
|
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: oauth2accesstoken
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Push Docker image to Container Registry
|
|
run: |
|
|
docker tag hello-world:latest git.hamburg.ccc.de/CCCHH/sunders:latest
|
|
docker push git.hamburg.ccc.de/CCCHH/sunders:latest |