forked from m1k1o/go-transcode
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial updates to persist transcoded files
- Loading branch information
Showing
7 changed files
with
206 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,38 @@ | ||
name: "CI for builds" | ||
# name: "CI for builds" | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
# on: | ||
# push: | ||
# tags: | ||
# - 'v*' | ||
|
||
jobs: | ||
build-amd64: | ||
name: amd64-${{ matrix.libc }} | ||
runs-on: ubuntu-latest | ||
# jobs: | ||
# build-amd64: | ||
# name: amd64-${{ matrix.libc }} | ||
# runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
include: | ||
- container: golang:1.19-bullseye | ||
libc: glibc | ||
- container: golang:1.19-alpine | ||
libc: musl | ||
# strategy: | ||
# matrix: | ||
# include: | ||
# - container: golang:1.19-bullseye | ||
# libc: glibc | ||
# - container: golang:1.19-alpine | ||
# libc: musl | ||
|
||
container: | ||
image: ${{ matrix.container }} | ||
# container: | ||
# image: ${{ matrix.container }} | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v3 | ||
|
||
- name: Build | ||
run: go build -ldflags="-s -w" | ||
# - name: Build | ||
# run: go build -ldflags="-s -w" | ||
|
||
- name: Upload to releases | ||
uses: svenstaro/upload-release-action@v2 | ||
id: attach_to_release | ||
with: | ||
file: go-transcode | ||
asset_name: go-transcode-amd64-${{ matrix.libc }} | ||
tag: ${{ github.ref }} | ||
overwrite: true | ||
# - name: Upload to releases | ||
# uses: svenstaro/upload-release-action@v2 | ||
# id: attach_to_release | ||
# with: | ||
# file: go-transcode | ||
# asset_name: go-transcode-amd64-${{ matrix.libc }} | ||
# tag: ${{ github.ref }} | ||
# overwrite: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,53 @@ | ||
name: "CI for docker" | ||
# name: "CI for docker" | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
tags: | ||
- 'v*' | ||
# on: | ||
# push: | ||
# branches: | ||
# - master | ||
# tags: | ||
# - 'v*' | ||
|
||
jobs: | ||
build-and-push-image: | ||
runs-on: ubuntu-latest | ||
# jobs: | ||
# build-and-push-image: | ||
# runs-on: ubuntu-latest | ||
|
||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v2 | ||
- | ||
name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
- | ||
name: Set up Docker Buildx | ||
id: buildx | ||
uses: docker/setup-buildx-action@v1 | ||
- | ||
name: Available platforms | ||
run: echo ${{ steps.buildx.outputs.platforms }} | ||
- | ||
name: Extract metadata (tags, labels) for Docker | ||
uses: docker/metadata-action@v3 | ||
id: meta | ||
with: | ||
images: ghcr.io/${{ github.repository }} | ||
tags: | | ||
type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }} | ||
type=semver,pattern={{version}} | ||
type=semver,pattern={{major}}.{{minor}} | ||
type=semver,pattern={{major}} | ||
- | ||
name: Log in to the Container registry | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- | ||
name: Build and push | ||
uses: docker/build-push-action@v2 | ||
with: | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
platforms: linux/amd64,linux/arm64,linux/arm/v7 | ||
push: true | ||
# steps: | ||
# - | ||
# name: Checkout | ||
# uses: actions/checkout@v2 | ||
# - | ||
# name: Set up QEMU | ||
# uses: docker/setup-qemu-action@v1 | ||
# - | ||
# name: Set up Docker Buildx | ||
# id: buildx | ||
# uses: docker/setup-buildx-action@v1 | ||
# - | ||
# name: Available platforms | ||
# run: echo ${{ steps.buildx.outputs.platforms }} | ||
# - | ||
# name: Extract metadata (tags, labels) for Docker | ||
# uses: docker/metadata-action@v3 | ||
# id: meta | ||
# with: | ||
# images: ghcr.io/${{ github.repository }} | ||
# tags: | | ||
# type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }} | ||
# type=semver,pattern={{version}} | ||
# type=semver,pattern={{major}}.{{minor}} | ||
# type=semver,pattern={{major}} | ||
# - | ||
# name: Log in to the Container registry | ||
# uses: docker/login-action@v1 | ||
# with: | ||
# registry: ghcr.io | ||
# username: ${{ github.actor }} | ||
# password: ${{ secrets.GITHUB_TOKEN }} | ||
# - | ||
# name: Build and push | ||
# uses: docker/build-push-action@v2 | ||
# with: | ||
# tags: ${{ steps.meta.outputs.tags }} | ||
# labels: ${{ steps.meta.outputs.labels }} | ||
# platforms: linux/amd64,linux/arm64,linux/arm/v7 | ||
# push: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,5 @@ | |
/go-transcode | ||
/bin | ||
/.env | ||
|
||
vids/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.