Compare commits
47 Commits
build-late
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 2d35dd749e | |||
| 039910509e | |||
| cfab5c2bd7 | |||
| 9bcd039b31 | |||
| 4d34403278 | |||
| ab36c5c80b | |||
| 60ecdcea4d | |||
| fca7a4e3ac | |||
| dccc1a36cb | |||
| b42bbd4f1b | |||
| 51fc743089 | |||
| 97b9a128b9 | |||
| 78fa8981d2 | |||
| 9cde049241 | |||
| 856c948817 | |||
| 9efa0cf20d | |||
| 8edba05187 | |||
| eae83f5b02 | |||
| dfcb8f1c38 | |||
| 6e536ef00e | |||
| 2d8ab4608c | |||
| 4d3e30e57c | |||
| ae257ac2a2 | |||
| 3826784e29 | |||
| 5a3d53ed7f | |||
| 63ac4cfa0d | |||
| 2f3a333870 | |||
| 0928a980c8 | |||
| b4d434dee5 | |||
| 6e42008b5d | |||
| 31c1b3bd00 | |||
| ddf7369257 | |||
| c1a30a9077 | |||
| 7f1339e573 | |||
| 33afcf3737 | |||
| 5116600682 | |||
| b9820fa43c | |||
| 5284c71aaa | |||
| 6b01f608c6 | |||
| 4147419d83 | |||
| 7912392de0 | |||
| a31aba23ba | |||
| 0f425d7a7c | |||
| 0b6e47de87 | |||
| ba0a59d7fc | |||
| 7a42204d62 | |||
| b9076ec850 |
@@ -4,9 +4,10 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
paths-ignore:
|
paths:
|
||||||
- '**/CHANGES.md'
|
- '.gitea/workflows/*.yml'
|
||||||
- '**/build-info.json'
|
- '!**/CHANGES.md'
|
||||||
|
- '!**/build-info.json'
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 12 * * 0' # Sunday at noon UTC
|
- cron: '0 12 * * 0' # Sunday at noon UTC
|
||||||
|
|
||||||
@@ -19,7 +20,7 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
runs-on: docker-build2
|
runs-on: vm-docker-build2
|
||||||
outputs:
|
outputs:
|
||||||
tarball-updated: ${{ steps.set-output.outputs.tarball_updated }}
|
tarball-updated: ${{ steps.set-output.outputs.tarball_updated }}
|
||||||
steps:
|
steps:
|
||||||
@@ -28,17 +29,17 @@ jobs:
|
|||||||
|
|
||||||
- name: Build Alpine Base Image
|
- name: Build Alpine Base Image
|
||||||
run: |
|
run: |
|
||||||
docker build -t alpine-builder .
|
docker build -t alpine-base .
|
||||||
mkdir -p latest
|
mkdir -p latest
|
||||||
container_id=$(docker create alpine-builder)
|
container_id=$(docker create alpine-base)
|
||||||
docker cp "$container_id":/output/alpine-base.tar.gz ./latest/alpine-base.tar.gz
|
docker cp "$container_id":/output/alpine-base.tar.gz ./latest/alpine-base.tar.gz
|
||||||
docker rm "$container_id"
|
docker rm "$container_id"
|
||||||
|
|
||||||
- name: Show tarball
|
- name: Show tarball
|
||||||
run: ls -lh ${{ env.OUTPUT_TAR }}
|
run: ls -lh ${{ env.OUTPUT_TAR }}
|
||||||
|
|
||||||
- name: Clone upload repo
|
- name: Clone repo with token auth
|
||||||
run: git clone https://gitea.fithwum.tech/fithwum/alpine-base.git upload-repo
|
run: git clone https://${{ secrets.GIT_USERNAME }}:${{ secrets.GIT_TOKEN }}@gitea.fithwum.tech/fithwum/alpine-base.git upload-repo
|
||||||
|
|
||||||
- name: Copy and push tarball
|
- name: Copy and push tarball
|
||||||
run: |
|
run: |
|
||||||
@@ -61,17 +62,15 @@ jobs:
|
|||||||
|
|
||||||
push-docker:
|
push-docker:
|
||||||
needs: build-and-push
|
needs: build-and-push
|
||||||
if: always()
|
if: needs.build-and-push-rootfs.outputs.tarball-updated == 'true'
|
||||||
# if: needs.build-and-push-rootfs.outputs.tarball-updated == 'true'
|
runs-on: vm-docker-build2
|
||||||
runs-on: docker-build2
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
run: |
|
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login gitea.fithwum.tech -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
|
||||||
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login gitea.fithwum.tech -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
|
|
||||||
|
|
||||||
- name: Clone upload repo
|
- name: Clone repo with token auth
|
||||||
run: git clone https://gitea.fithwum.tech/fithwum/alpine-base.git upload-repo
|
run: git clone https://${{ secrets.GIT_USERNAME }}:${{ secrets.GIT_TOKEN }}@gitea.fithwum.tech/fithwum/alpine-base.git upload-repo
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
run: |
|
run: |
|
||||||
@@ -84,12 +83,10 @@ jobs:
|
|||||||
|
|
||||||
update-changelog:
|
update-changelog:
|
||||||
needs: push-docker
|
needs: push-docker
|
||||||
runs-on: docker-build2
|
runs-on: vm-docker-build2
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Clone repo with token auth
|
- name: Clone repo with token auth
|
||||||
run: |
|
run: git clone https://${{ secrets.GIT_USERNAME }}:${{ secrets.GIT_TOKEN }}@gitea.fithwum.tech/fithwum/alpine-base.git upload-repo
|
||||||
git clone https://${{ secrets.GIT_USERNAME }}:${{ secrets.GIT_TOKEN }}@gitea.fithwum.tech/fithwum/alpine-base.git upload-repo
|
|
||||||
|
|
||||||
- name: Update CHANGES.md
|
- name: Update CHANGES.md
|
||||||
run: |
|
run: |
|
||||||
@@ -122,12 +119,11 @@ jobs:
|
|||||||
|
|
||||||
update-build-info:
|
update-build-info:
|
||||||
needs: update-changelog
|
needs: update-changelog
|
||||||
runs-on: docker-build2
|
runs-on: vm-docker-build2
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Clone repo with token auth
|
- name: Clone repo with token auth
|
||||||
run: |
|
run: git clone https://${{ secrets.GIT_USERNAME }}:${{ secrets.GIT_TOKEN }}@gitea.fithwum.tech/fithwum/alpine-base.git upload-repo
|
||||||
git clone https://${{ secrets.GIT_USERNAME }}:${{ secrets.GIT_TOKEN }}@gitea.fithwum.tech/fithwum/alpine-base.git upload-repo
|
|
||||||
|
|
||||||
- name: Generate build-info.json
|
- name: Generate build-info.json
|
||||||
run: |
|
run: |
|
||||||
@@ -169,4 +165,3 @@ jobs:
|
|||||||
git tag "build-latest"
|
git tag "build-latest"
|
||||||
git push https://${{ secrets.GIT_USERNAME }}:${{ secrets.GIT_TOKEN }}@gitea.fithwum.tech/fithwum/alpine-base.git --tags
|
git push https://${{ secrets.GIT_USERNAME }}:${{ secrets.GIT_TOKEN }}@gitea.fithwum.tech/fithwum/alpine-base.git --tags
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
68
Dockerfile
68
Dockerfile
@@ -1,3 +1,71 @@
|
|||||||
|
# FROM alpine:latest AS builder
|
||||||
|
# LABEL maintainer="fithwum"
|
||||||
|
|
||||||
|
# ARG ALPINE_VERSION
|
||||||
|
# ENV ALPINE_VERSION=${ALPINE_VERSION}
|
||||||
|
|
||||||
|
# WORKDIR /builder
|
||||||
|
|
||||||
|
# # Install tools needed for building rootfs
|
||||||
|
# RUN apk update && apk add --no-cache bash curl wget git jq ca-certificates coreutils tar gzip
|
||||||
|
|
||||||
|
# # Download alpine-make-rootfs script
|
||||||
|
# RUN wget https://raw.githubusercontent.com/alpinelinux/alpine-make-rootfs/master/alpine-make-rootfs \
|
||||||
|
# && chmod +x alpine-make-rootfs
|
||||||
|
|
||||||
|
# # Build the rootfs
|
||||||
|
# RUN ./alpine-make-rootfs \
|
||||||
|
# --branch ${ALPINE_VERSION} \
|
||||||
|
# --mirror http://dl-cdn.alpinelinux.org/alpine/ \
|
||||||
|
# --packages "bash curl ca-certificates nano" \
|
||||||
|
# alpine-rootfs
|
||||||
|
|
||||||
|
# # Run custom script inside rootfs
|
||||||
|
# COPY base-image-script/alpine-base_pt2.sh /builder/alpine-rootfs/
|
||||||
|
# RUN chmod +x /builder/alpine-rootfs/alpine-base_pt2.sh && \
|
||||||
|
# chroot /builder/alpine-rootfs /alpine-base_pt2.sh || true
|
||||||
|
|
||||||
|
# # Clean up script
|
||||||
|
# RUN rm -f /builder/alpine-rootfs/alpine-base_pt2.sh
|
||||||
|
|
||||||
|
# # Package with versioned filename
|
||||||
|
# RUN mkdir -p /output && \
|
||||||
|
# tar -czf /output/alpine-${ALPINE_VERSION}.tar.gz -C alpine-rootfs .
|
||||||
|
|
||||||
|
# # Final stage just copies the archive
|
||||||
|
# FROM scratch AS export-stage
|
||||||
|
# ARG ALPINE_VERSION
|
||||||
|
# COPY --from=builder /output/alpine-${ALPINE_VERSION}.tar.gz /output/alpine-${ALPINE_VERSION}.tar.gz
|
||||||
|
# CMD ["sleep", "infinity"]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
FROM alpine:3.20 AS builder
|
FROM alpine:3.20 AS builder
|
||||||
LABEL maintainer="fithwum"
|
LABEL maintainer="fithwum"
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
4
v3.18/Dockerfile
Normal file
4
v3.18/Dockerfile
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
FROM scratch
|
||||||
|
LABEL maintainer="fithwum"
|
||||||
|
ADD alpine-v3.18.tar.gz /
|
||||||
|
CMD ["/bin/sh"]
|
||||||
BIN
v3.18/alpine-v3.18.tar.gz
Normal file
BIN
v3.18/alpine-v3.18.tar.gz
Normal file
Binary file not shown.
4
v3.19/Dockerfile
Normal file
4
v3.19/Dockerfile
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
FROM scratch
|
||||||
|
LABEL maintainer="fithwum"
|
||||||
|
ADD alpine-v3.19.tar.gz /
|
||||||
|
CMD ["/bin/sh"]
|
||||||
BIN
v3.19/alpine-v3.19.tar.gz
Normal file
BIN
v3.19/alpine-v3.19.tar.gz
Normal file
Binary file not shown.
4
v3.20/Dockerfile
Normal file
4
v3.20/Dockerfile
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
FROM scratch
|
||||||
|
LABEL maintainer="fithwum"
|
||||||
|
ADD alpine-v3.20.tar.gz /
|
||||||
|
CMD ["/bin/sh"]
|
||||||
BIN
v3.20/alpine-v3.20.tar.gz
Normal file
BIN
v3.20/alpine-v3.20.tar.gz
Normal file
Binary file not shown.
Reference in New Issue
Block a user