docker-twitchlite/.forgejo/workflows/build.yml
Magnus Walbeck d4af227188
All checks were successful
Test / lint (pull_request) Successful in 4s
Test / test (pull_request) Successful in 38s
Fix context location in build
2025-02-02 15:42:34 +01:00

42 lines
No EOL
1 KiB
YAML

name: Build and publish
on:
push:
branches:
- main
jobs:
lint:
runs-on: docker
steps:
- uses: actions/checkout@v4
- uses: https://github.com/hadolint/hadolint-action@v3.1.0
with:
dockerfile: helix/Dockerfile
build:
runs-on: dind
steps:
- uses: actions/checkout@v4
- name: Get docker tags
id: tags
shell: sh
env:
CUSTOM_TAGS: "latest"
IMAGE_NAME: "mwalbeck/twitchlite"
run: |
determine-docker-tags
dockerd &
- name: Login to Docker Hub
uses: https://github.com/docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up Docker Buildx
uses: https://github.com/docker/setup-buildx-action@v3
- name: Build and push
uses: https://github.com/docker/build-push-action@v6
with:
context: helix
push: true
tags: ${{ steps.tags.outputs.tags }}