-
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.
- Loading branch information
1 parent
58776a2
commit 5b6b74e
Showing
5 changed files
with
62 additions
and
7 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 |
---|---|---|
@@ -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 |
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
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 | ||
|
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,4 +1,4 @@ | ||
FROM debian:trixie-slim | ||
FROM public.ecr.aws/docker/library/debian:trixie-slim | ||
|
||
ARG TARGETPLATFORM | ||
ARG CHANNEL | ||
|