mirror of
https://github.com/ManiMatter/decluttarr.git
synced 2026-04-21 00:05:35 +02:00
TEST
This commit is contained in:
101
.github/workflows/main-multiX.yml
vendored
Normal file
101
.github/workflows/main-multiX.yml
vendored
Normal file
@@ -0,0 +1,101 @@
|
||||
name: Test for creating multi arch packages without buildx
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
paths:
|
||||
- '**/*'
|
||||
- '!README.md'
|
||||
- '!CONTRIBUTE.md'
|
||||
workflow_dispatch:
|
||||
|
||||
|
||||
jobs:
|
||||
build-main:
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
working-directory: '.'
|
||||
steps:
|
||||
- name: 'Checkout GitHub Action'
|
||||
uses: actions/checkout@main
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: 'Login to GitHub Container Registry'
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{github.actor}}
|
||||
password: ${{secrets.GITHUB_TOKEN}}
|
||||
|
||||
- name: Store short Commit ID in env variable
|
||||
id: vars
|
||||
run: |
|
||||
calculatedSha=$(git rev-parse --short ${{ github.sha }})
|
||||
echo "SHORT_COMMIT_ID=$calculatedSha" >> $GITHUB_ENV
|
||||
|
||||
- name: "Build, Tag, and push the Docker image"
|
||||
env:
|
||||
IMAGE_NAME: ghcr.io/manimatter/decluttarr
|
||||
IMAGE_TAG: maintestX
|
||||
run: |
|
||||
docker buildx build \
|
||||
--platform linux/amd64,linux/arm64 \
|
||||
-f docker/Dockerfile . \
|
||||
--progress plain \
|
||||
-t $IMAGE_NAME:$IMAGE_TAG \
|
||||
-t $IMAGE_NAME:latest \
|
||||
--label com.decluttarr.version=$IMAGE_TAG \
|
||||
--label com.decluttarr.commit=$SHORT_COMMIT_ID \
|
||||
--build-arg IMAGE_TAG=$IMAGE_TAG \
|
||||
--build-arg SHORT_COMMIT_ID=$SHORT_COMMIT_ID \
|
||||
--push \
|
||||
|
||||
|
||||
|
||||
|
||||
# $ docker buildx create --use --name mybuild node-amd64
|
||||
# mybuild
|
||||
# $ docker buildx create --append --name mybuild node-arm64
|
||||
# $ docker buildx build --platform linux/amd64,linux/arm64 .
|
||||
|
||||
|
||||
# run: |
|
||||
# docker buildx build \
|
||||
# --platform linux/amd64,linux/arm64 -f docker/Dockerfile . \
|
||||
# --progress plain \
|
||||
# -t $IMAGE_NAME:$IMAGE_TAG \
|
||||
# --label com.decluttarr.version=$IMAGE_TAG \
|
||||
# --label com.decluttarr.commit=$SHORT_COMMIT_ID \
|
||||
# --build-arg IMAGE_TAG=$IMAGE_TAG \
|
||||
# --build-arg SHORT_COMMIT_ID=$SHORT_COMMIT_ID \
|
||||
# --push \
|
||||
|
||||
# - name: "Build, Tag, and push the Docker image"
|
||||
# env:
|
||||
# IMAGE_NAME: ghcr.io/manimatter/decluttarr
|
||||
# IMAGE_TAG: dev
|
||||
# run: |
|
||||
# docker build \
|
||||
# --progress plain \
|
||||
# -t $IMAGE_NAME:$IMAGE_TAG \
|
||||
# --label com.decluttarr.version=$IMAGE_TAG \
|
||||
# --label com.decluttarr.commit=$SHORT_COMMIT_ID \
|
||||
# --build-arg IMAGE_TAG=$IMAGE_TAG \
|
||||
# --build-arg SHORT_COMMIT_ID=$SHORT_COMMIT_ID \
|
||||
# -f docker/Dockerfile \
|
||||
# --push .
|
||||
|
||||
|
||||
|
||||
# - name: "Delete untagged versions"
|
||||
# uses: actions/delete-package-versions@v4
|
||||
# with:
|
||||
# package-name: 'decluttarr'
|
||||
# package-type: 'container'
|
||||
# delete-only-untagged-versions: 'true'
|
||||
Reference in New Issue
Block a user