All checks were successful
Build and Push / build (push) Successful in 25s
20 lines
519 B
YAML
20 lines
519 B
YAML
name: Build and Push
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Build and push to registry
|
|
run: |
|
|
# Login to Forgejo registry (requires FORGEJO_TOKEN secret)
|
|
echo "${{ secrets.FORGEJO_TOKEN }}" | docker login git.mardbrink.se -u hugomardbrink --password-stdin
|
|
|
|
# Build and push the image
|
|
docker buildx build --push -t git.mardbrink.se/hugomardbrink/hugo.mardbrink.se:latest .
|
|
|