Files
boys_streaming/.gitea/workflows/docker-build.yml
T
Workflow config file is invalid. Please check your config file: model.ReadWorkflow: yaml: unmarshal errors: line 38: cannot unmarshal !!seq into string line 41: cannot unmarshal !!seq into string

43 lines
1012 B
YAML

name: Build and Push Docker Image
on:
push:
branches:
- main
env:
REGISTRY: git.home.piesweb.co.uk
IMAGE_NAME: pie/boys_streaming
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and Push
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
platforms:
- linux/amd64
push: true
tags:
- ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
- ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}