Compare commits

...

32 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
Kokomo123
856cc070b8 Fixing some stuff. 2024-08-24 18:45:46 -04:00
Kokomo123
cc04a95682 Add a potential metadata extraction? 2024-08-24 18:45:02 -04:00
Kokomo123
8f791c05f0 Experimenting with disabling setting the environment 2024-08-24 18:28:33 -04:00
Kokomo123
5bccfe60b7 Experimental tagging 2024-08-24 18:21:57 -04:00
Kokomo123
d6415aef0b Put back the latest script 2024-08-24 18:16:49 -04:00
Kokomo123
a70b87fd00 Restore Line 73 from main.yml 2024-08-24 15:50:22 -04:00
Kokomo123
02d7c8c0ef This should fix it 2024-08-22 18:58:20 -04:00
Kokomo123
713b56d4e2 Final version of fixing the push command 2024-08-22 18:53:20 -04:00
Kokomo123
3af7d71726 Push final version? 2024-08-22 18:25:49 -04:00
Kokomo123
a12413fa58 Testing 2024-08-22 18:19:41 -04:00
Kokomo123
a970a6294a Fixing up for last time, with proper commands.. 2024-08-22 18:02:30 -04:00
Kokomo123
18d17209b2 Before the t? 2024-08-22 17:44:02 -04:00
Kokomo123
5048871058 Placing platform afterwards.. 2024-08-22 17:37:42 -04:00
Kokomo123
9ae408de25 Typo 2024-08-22 17:32:50 -04:00
Kokomo123
b3ba187884 Buildx please work 2024-08-22 17:29:53 -04:00
Kokomo123
4638c1af7a Push platforms flag and see if that works.. 2024-08-22 17:26:54 -04:00
Kokomo123
39c0995504 Forgot the dot... 2024-08-22 17:22:53 -04:00
Kokomo123
340945a77d See if this works.. 2024-08-22 17:18:32 -04:00
Kokomo123
5ec8e31615 Fix username 2024-08-22 17:05:17 -04:00
Kokomo123
e4085c323f Fix it up 2024-08-22 17:01:04 -04:00
Kokomo123
60f6061ba8 Add arm64 building potentially. 2024-08-22 16:57:16 -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
@@ -55,20 +55,37 @@ jobs:
echo "IMAGE_ID=$(echo ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME | tr '[A-Z]' '[a-z]')" >> $GITHUB_ENV echo "IMAGE_ID=$(echo ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME | tr '[A-Z]' '[a-z]')" >> $GITHUB_ENV
# region See: https://docs.github.com/en/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions#upgrading-a-workflow-that-accesses-ghcrio # region See: https://docs.github.com/en/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions#upgrading-a-workflow-that-accesses-ghcrio
- name: Build Image - name: Use QEMU
run: | uses: docker/setup-qemu-action@master
docker build -t $IMAGE_NAME . with:
platforms: all
- name: Free Disk Space (Ubuntu)
uses: insightsengineering/disk-space-reclaimer@v1
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tools-cache: true
android: true
dotnet: true
haskell: true
large-packages: true
swap-storage: true
docker-images: false
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@master
- name: Log In to Registry - name: Log In to Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Push Image - name: Build the docker image
run: | uses: docker/build-push-action@master
echo IMAGE_ID=$IMAGE_ID with:
echo IMAGE_VERSION=$IMAGE_VERSION context: .
docker tag $IMAGE_NAME $IMAGE_ID:$IMAGE_VERSION builder: ${{ steps.buildx.outputs.name }}
# Always tag latest when pushing a tag, as we don't expect to ever merge old tags platforms: linux/arm64,linux/amd64
[[ "${{ github.ref }}" == "refs/tags/"* ]] && docker tag $IMAGE_NAME $IMAGE_ID:latest push: true
docker push $IMAGE_ID:$IMAGE_VERSION tags: ghcr.io/kokomo123/5etools-img:latest
docker push $IMAGE_ID:latest
# endregion # endregion