Skip to content

Commit

Permalink
Add megacmd docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
iaacautomation committed Sep 11, 2024
1 parent 58776a2 commit 5b6b74e
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 7 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/mega.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Build and Release Deploy Image
on:
push:
paths:
- 'megacmd/**'
- '.github/workflows/megacmd.yaml'
schedule:
- cron: '0 0 * * 0'

jobs:
release:
name: Build and Release Deploy Image
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Log in to the Github Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: all

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build and Push images
uses: docker/build-push-action@v5
with:
context: megacmd
push: true
tags: ghcr.io/iaacautomation/megacmd:latest
platforms: linux/amd64 ,linux/arm64
build-args: CHANNEL=nightly
4 changes: 0 additions & 4 deletions deploy-azure/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
FROM --platform=$BUILDPLATFORM golang:alpine
ARG TARGETPLATFORM
ARG BUILDPLATFORM

FROM mcr.microsoft.com/azure-cli
LABEL org.opencontainers.image.authors "Manpreet Singh Nehra"
LABEL org.opencontainers.image.source "https://github.com/iaacautomation/devops-tools/tree/main/deploy-azure"
Expand Down
4 changes: 2 additions & 2 deletions deploy/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM --platform=$BUILDPLATFORM golang:alpine AS build
FROM --platform=$BUILDPLATFORM public.ecr.aws/docker/library/golang:alpine AS build
ARG TARGETPLATFORM
ARG BUILDPLATFORM

FROM alpine:latest
FROM public.ecr.aws/docker/library/alpine:latest
LABEL org.opencontainers.image.authors "Manpreet Singh Nehra"
LABEL org.opencontainers.image.source "https://github.com/iaacautomation/devops-tools/tree/main/deploy"
LABEL org.opencontainers.image.title "CI/CD Tools base"
Expand Down
13 changes: 13 additions & 0 deletions megacmd/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM public.ecr.aws/docker/library/debian:stable-slim

ENV DEBIAN_FRONTEND=non-interactive

RUN apt-get update && \
apt-get -y install wget && \
wget https://mega.nz/linux/repo/Debian_12/amd64/megacmd-Debian_12_amd64.deb && \
apt-get -y install "$PWD/megacmd-Debian_12_amd64.deb" && \
rm *.deb && \
apt-get purge -y && \
apt-get autoremove -y && \
apt-get autoclean -y

2 changes: 1 addition & 1 deletion whisparr/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:trixie-slim
FROM public.ecr.aws/docker/library/debian:trixie-slim

ARG TARGETPLATFORM
ARG CHANNEL
Expand Down

0 comments on commit 5b6b74e

Please sign in to comment.