Compare commits

...

11 Commits

Author SHA1 Message Date
Kokomo123
8401ac724d Remove testing tag, fix up stuff. 2024-08-24 22:33:52 -04:00
Kokomo123
46f6a43848 Get rid of extra step, finally. 2024-08-24 22:31:23 -04:00
Kokomo123
8fe91b6360 Experimental purposes.. 2024-08-24 22:21:14 -04:00
Kokomo123
ad8f7bf9ef Enable loading of the docker image 2024-08-24 22:05:10 -04:00
Kokomo123
d199155e78 disable pushing on building 2024-08-24 21:59:28 -04:00
Kokomo123
b8bd7d61e5 Disable release workflow temporarily. 2024-08-24 21:53:13 -04:00
Kokomo123
38fa963484 Remove push image step 2024-08-24 20:33:57 -04:00
Kokomo123
828b2b245a Pushing it to ghcr instead of internally. 2024-08-24 20:27:24 -04:00
Kokomo123
89a4cdc5a7 Fixing tags again.. 2024-08-24 20:18:04 -04:00
Kokomo123
23c81ab305 Pushing fixes to tags.. 2024-08-24 20:12:53 -04:00
Kokomo123
5ebf0e2d13 Changes and switching stuff around 2024-08-24 20:04:29 -04: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,15 +60,18 @@ jobs:
with: with:
platforms: all platforms: all
- name: Testing metadata extraction - name: Free Disk Space (Ubuntu)
id: meta uses: insightsengineering/disk-space-reclaimer@v1
uses: docker/metadata-action@master
with: with:
images: kokomo123/5etools-img # this might remove tools that are actually needed,
tags: | # if set to "true" but frees about 6 GB
add-arm64-building tools-cache: true
type=edge android: true
type=sha dotnet: true
haskell: true
large-packages: true
swap-storage: true
docker-images: false
- name: Set up Docker Buildx - name: Set up Docker Buildx
id: buildx id: buildx
@@ -83,17 +86,6 @@ jobs:
context: . context: .
builder: ${{ steps.buildx.outputs.name }} builder: ${{ steps.buildx.outputs.name }}
platforms: linux/arm64,linux/amd64 platforms: linux/arm64,linux/amd64
push: false push: true
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