ci: fix build dev workflow

This commit is contained in:
Aleksi Lassila
2025-02-15 21:55:40 +02:00
parent 0e110693ce
commit a83d9dd6a8

39
.github/workflows/build-dev.yml vendored Normal file
View File

@@ -0,0 +1,39 @@
name: Build Dev
on:
push:
branches:
- dev
workflow_dispatch:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
push:
timeout-minutes: 10
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v2
with:
registry: ${{env.REGISTRY}}
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: Build containers
run: docker compose -f docker-compose.yml -f docker-compose.prod.yml build
- name: Add tag
run: docker tag ${{env.REGISTRY}}/${{env.IMAGE_NAME}}:latest ${{env.REGISTRY}}/${{env.IMAGE_NAME}}:dev
- name: Push to Docker Hub
run: docker push ${{env.REGISTRY}}/${{env.IMAGE_NAME}}:dev