mirror of
https://github.com/aleksilassila/reiverr.git
synced 2026-04-17 22:53:12 +02:00
ci: fix build dev workflow
This commit is contained in:
39
.github/workflows/build-dev.yml
vendored
Normal file
39
.github/workflows/build-dev.yml
vendored
Normal 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
|
||||||
Reference in New Issue
Block a user