Skip to content

Commit

Permalink
chore: attempt 1 at more automated releases
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbenincasa committed Jul 17, 2024
1 parent d8840ac commit 07d3fb4
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 62 deletions.
26 changes: 25 additions & 1 deletion .github/workflows/build-and-push-docker-edge.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
name: Push Docker Edge
name: Build & Push Docker Edge

on:
workflow_dispatch:
push:
tags:
- 'v*'
schedule:
- cron: '0 13-21/2 * * MON-FRI' # every hour, during working hours (UTC)

Expand All @@ -20,32 +23,51 @@ jobs:
chrisbenincasa/tunarr:latest
ghcr.io/chrisbenincasa/tunarr:latest
platform: linux/amd64
suffix:
- base_tag: 7.0-nvidia
tags: |
chrisbenincasa/tunarr:edge-nvidia
ghcr.io/chrisbenincasa/tunarr:edge-nvidia
platform: linux/amd64
suffix: -nvidia
- base_tag: 7.0-vaapi
tags: |
chrisbenincasa/tunarr:edge-vaapi
ghcr.io/chrisbenincasa/tunarr:edge-vaapi
platform: linux/amd64
suffix: -vaapi
- base_tag: 7.0-arm64
tags: |
chrisbenincasa/tunarr:edge-arm64
ghcr.io/chrisbenincasa/tunarr:edge-arm64
platform: linux/arm64
suffix: -arm64
- base_tag: 7.0-arm
tags: |
chrisbenincasa/tunarr:edge-arm
ghcr.io/chrisbenincasa/tunarr:edge-arm
platform: linux/arm/v7
suffix: -arm

steps:
- uses: actions/checkout@v4
with:
ref: dev

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
flavor: |
suffix=${{ matrix.builds.suffix }}
images: |
chrisbenincasa/tunarr
ghcr.io/chrisbenincasa/tunarr
tags: |
type=schedule,pattern=edge
type=semver,pattern={{version}}
type=raw,value=edge,enable=${{github.ref == format('refs/heads/{0}', 'dev') && github.event_name == 'workflow_dispatch'}}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

Expand Down Expand Up @@ -83,6 +105,8 @@ jobs:
exit 0 # Exit without pushing the image
fi
echo "PREVIOUS_HEAD_SHA=$HEAD_SHA" >> previous_head_sha # Save current SHA for next run
if: github.event_name == 'schedule'

- name: Generate Version Number
run: |
echo "TUNARR_VERSION=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-and-release-edge-binary.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Edge Binaries
name: Build & Publish Edge Binaries

on:
workflow_dispatch:
Expand Down
20 changes: 0 additions & 20 deletions .github/workflows/build-nexe-binaries.yml

This file was deleted.

13 changes: 9 additions & 4 deletions .github/workflows/build-nix-nexe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,15 @@ jobs:
strategy:
matrix:
os:
- name: macos-13
binary_name: macos-x64
- name: macos-14
binary_name: macos-arm64
# TODO: Is there a way to get these working?
# We don't build macOS Nexe binaries anymore because
# of code signing.
# - name: macos-13
# binary_name: macos-x64
# - name: macos-14
# binary_name: macos-arm64
# TODO: We can build ARM binaries, but we have to
# use a docker container and extract them
- name: ubuntu-latest
binary_name: linux-x64
node_version: [20.11.1]
Expand Down
35 changes: 0 additions & 35 deletions .github/workflows/build.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Public Docs
name: Publish Docs
on:
push:
branches:
Expand Down

0 comments on commit 07d3fb4

Please sign in to comment.