moll.re/.gitea/workflows/build.yaml
Remy Moll dca72234ff
Some checks failed
Build and docker image / Build (pull_request) Failing after 1m0s
finally like this?
2024-05-21 12:23:48 +02:00

38 lines
814 B
YAML

on:
pull_request:
branches:
- main
name: Build and docker image
jobs:
build:
name: Build
runs-on: k8s
container: ubuntu:latest
steps:
# - name: Install prerequisites
# run: |
# apt update
# apt install -y docker
# - uses: https://gitea.com/actions/checkout@v4
- name: Docker login
uses: docker/login-action@v3
with:
registry: docker.io
username: ${{ secrets.docker_username }}
password: ${{ secrets.docker_password }}
- name: Set up Docker Buildx
uses: https://github.com/docker/setup-buildx-action@v3
- name: Build
uses: https://github.com/docker/build-push-action@v2
with:
context: frontend
tags: ${{ secrets.docker_registry }}/frontend:latest
push: true