Compare commits

..

1 Commits

Author SHA1 Message Date
kokomo123
63fb995839 Merge 856cc070b8 into 4e16e59391 2024-08-24 22:45:51 +00:00

View File

@@ -17,27 +17,27 @@ concurrency:
cancel-in-progress: true cancel-in-progress: true
jobs: jobs:
#create-release: create-release:
#runs-on: ubuntu-latest runs-on: ubuntu-latest
#steps: steps:
# - uses: actions/checkout@master - uses: actions/checkout@master
# - name: Archive Images - name: Archive Images
# run: | run: |
# rm -rf docker Dockerfile rm -rf docker Dockerfile
# mkdir -p img mkdir -p img
# ls | grep -v img | xargs mv -t img ls | grep -v img | xargs mv -t img
# zip -r -s 500m img-${{ github.ref_name }}.zip img/ zip -r -s 500m img-${{ github.ref_name }}.zip img/
# - name: Upload Release - name: Upload Release
# Add the files one-by-one in an effort to avoid timeouts # Add the files one-by-one in an effort to avoid timeouts
# Sleep between creating the release and adding files, as the release takes time to be created (?) # Sleep between creating the release and adding files, as the release takes time to be created (?)
# run: | run: |
# gh release create "${{github.ref_name}}" --title "${{github.ref_name}}" --notes "Version ${{ github.ref_name }}" gh release create "${{github.ref_name}}" --title "${{github.ref_name}}" --notes "Version ${{ github.ref_name }}"
# sleep 10 sleep 10
# for f in $(find . -name 'img-${{ github.ref_name }}.*' -print); do gh release upload ${{ github.ref_name }} $f; done for f in $(find . -name 'img-${{ github.ref_name }}.*' -print); do gh release upload ${{ github.ref_name }} $f; done
# env: env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
create-image: create-image:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -60,18 +60,15 @@ jobs:
with: with:
platforms: all platforms: all
- name: Free Disk Space (Ubuntu) - name: Testing metadata extraction
uses: insightsengineering/disk-space-reclaimer@v1 id: meta
with: uses: docker/metadata-action@master
# this might remove tools that are actually needed, with:
# if set to "true" but frees about 6 GB images: kokomo123/5etools-img
tools-cache: true tags: |
android: true add-arm64-building
dotnet: true type=edge
haskell: true type=sha
large-packages: true
swap-storage: true
docker-images: false
- name: Set up Docker Buildx - name: Set up Docker Buildx
id: buildx id: buildx
@@ -86,6 +83,17 @@ jobs:
context: . context: .
builder: ${{ steps.buildx.outputs.name }} builder: ${{ steps.buildx.outputs.name }}
platforms: linux/arm64,linux/amd64 platforms: linux/arm64,linux/amd64
push: true push: false
tags: ghcr.io/kokomo123/5etools-img:latest
- name: Push image
run: |
echo IMAGE_ID=$IMAGE_ID
echo IMAGE_VERSION=$IMAGE_VERSION
docker tag $IMAGE_ID $IMAGE_ID:$IMAGE_VERSION
[[ "${{ github.ref }}" == "refs/tags/"* ]] && docker tag $IMAGE_NAME $IMAGE_ID:add-arm64-building
docker push $IMAGE_ID:$IMAGE_VERSION
docker push $IMAGE_ID:add-arm64-building
# endregion # endregion