hugo-asciidoc-docker-ci/.forgejo/workflows/build.yaml

26 lines
629 B
YAML
Raw Normal View History

2024-04-04 19:23:20 +03:00
name: Build Docker image
2024-02-24 15:29:04 +02:00
on: [push]
2024-04-04 19:23:20 +03:00
2024-02-24 15:29:04 +02:00
jobs:
build_image:
2024-02-24 15:35:25 +02:00
name: Build and publish image
2024-02-24 15:29:04 +02:00
runs-on: docker
2024-04-04 19:23:20 +03:00
2024-02-24 15:29:04 +02:00
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
2024-04-04 19:23:20 +03:00
2024-02-24 15:29:04 +02:00
- name: Login to Docker registry (Forgejo)
uses: docker/login-action@v3
with:
registry: git.korhonen.cc
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
2024-04-04 19:23:20 +03:00
2024-02-24 15:29:04 +02:00
- name: Build and push image
uses: docker/build-push-action@v5
with:
push: true
2024-02-24 15:34:45 +02:00
tags: git.korhonen.cc/functionalhacker/hugo-asciidoc-docker-ci