Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Support for ARM64 #136

Merged
merged 10 commits into from
Apr 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 35 additions & 13 deletions .github/workflows/docker-alpha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,48 @@ on:
pull_request:
branches: [ "main" ]

jobs:
env:
APP_NAME: watchlistarr
DOCKER_FILE: docker/Dockerfile
DOCKER_PLATFORMS: "linux/arm64/v8,linux/amd64"

build:

jobs:
build:
runs-on: ubuntu-latest


steps:
- uses: actions/checkout@v3
- name: Set up environment
run: echo "DOCKER_TAG=$(date +%s)" >> $GITHUB_ENV

- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build the Docker image
run: docker build . --file docker/Dockerfile --tag nylonee/watchlistarr:${DOCKER_TAG} --label=VERSION=${DOCKER_TAG}
- name: Push Docker image
run: |
docker tag nylonee/watchlistarr:${DOCKER_TAG} nylonee/watchlistarr:alpha
docker push nylonee/watchlistarr:${DOCKER_TAG}
docker push nylonee/watchlistarr:alpha

- name: Docker Metadata action
id: meta
uses: docker/[email protected]
with:
images: |
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.APP_NAME }}
tags: |
type=sha
alpha

- name: Docker Setup QEMU
uses: docker/[email protected]

- name: Docker Setup Buildx
uses: docker/[email protected]
with:
buildkitd-flags: --debug

- name: Build and push Docker images
uses: docker/[email protected]
with:
context: .
file: ${{ env.DOCKER_FILE }}
platforms: ${{ env.DOCKER_PLATFORMS }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
47 changes: 34 additions & 13 deletions .github/workflows/docker-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,47 @@ on:
push:
branches: [ "main" ]

jobs:
env:
APP_NAME: watchlistarr
DOCKER_FILE: docker/Dockerfile
DOCKER_PLATFORMS: "linux/arm64/v8,linux/amd64"

jobs:
build:

runs-on: ubuntu-latest


steps:
- uses: actions/checkout@v3
- name: Set up environment
run: echo "DOCKER_TAG=$(date +%s)" >> $GITHUB_ENV

- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build the Docker image
run: docker build . --file docker/Dockerfile --tag nylonee/watchlistarr:${DOCKER_TAG} --label=VERSION=${DOCKER_TAG}
- name: Push Docker image
run: |
docker tag nylonee/watchlistarr:${DOCKER_TAG} nylonee/watchlistarr:beta
docker push nylonee/watchlistarr:${DOCKER_TAG}
docker push nylonee/watchlistarr:beta

- name: Docker Metadata action
id: meta
uses: docker/[email protected]
with:
images: |
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.APP_NAME }}
tags: |
type=sha
beta

- name: Docker Setup QEMU
uses: docker/[email protected]

- name: Docker Setup Buildx
uses: docker/[email protected]
with:
buildkitd-flags: --debug

- name: Build and push Docker images
uses: docker/[email protected]
with:
context: .
file: ${{ env.DOCKER_FILE }}
platforms: ${{ env.DOCKER_PLATFORMS }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
51 changes: 38 additions & 13 deletions .github/workflows/release-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,50 @@ on:
release:
types: [published]

jobs:
env:
APP_NAME: watchlistarr
DOCKER_FILE: docker/Dockerfile
DOCKER_PLATFORMS: "linux/arm64/v8,linux/amd64"

build:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up environment
run: echo "DOCKER_TAG=${{ github.event.release.tag_name }}" >> $GITHUB_ENV
- uses: actions/checkout@v3


- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build the Docker image
run: docker build . --file docker/Dockerfile --tag nylonee/watchlistarr:${DOCKER_TAG} --label=VERSION=${DOCKER_TAG}
- name: Push Docker image
run: |
docker tag nylonee/watchlistarr:${DOCKER_TAG} nylonee/watchlistarr:latest
docker push nylonee/watchlistarr:${DOCKER_TAG}
docker push nylonee/watchlistarr:latest

- name: Docker Metadata action
id: meta
uses: docker/[email protected]
with:
images: |
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.APP_NAME }}
tags: |
type=sha
type=semver,pattern={{version}}
latest

- name: Docker Setup QEMU
uses: docker/[email protected]

- name: Docker Setup Buildx
uses: docker/[email protected]
with:
buildkitd-flags: --debug

- name: Build and push Docker images
uses: docker/[email protected]
with:
context: .
file: ${{ env.DOCKER_FILE }}
platforms: ${{ env.DOCKER_PLATFORMS }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Loading