mirror of
https://github.com/aleksilassila/reiverr.git
synced 2026-04-18 02:53:15 +02:00
40 lines
911 B
YAML
40 lines
911 B
YAML
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
|