Compare commits
7 Commits
bfbd2a975b
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
99af57e0ef
|
|||
|
bde1ce538e
|
|||
|
70d5448acd
|
|||
|
bff10b917a
|
|||
|
490c7e7313
|
|||
|
0419a180e0
|
|||
|
21ec5be273
|
@@ -7,10 +7,8 @@ env:
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
|
||||||
- '*'
|
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 12 3 * *"
|
- cron: "0 12 * * 3"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
workflow_run:
|
workflow_run:
|
||||||
@@ -49,7 +47,7 @@ jobs:
|
|||||||
docker build \
|
docker build \
|
||||||
--tag ${{ env.REGISTRY }}/${{ env.REPOSITORY }}:latest-${{ matrix.arch }} \
|
--tag ${{ env.REGISTRY }}/${{ env.REPOSITORY }}:latest-${{ matrix.arch }} \
|
||||||
--build-arg HUGO_ARCH=${{ matrix.arch }} \
|
--build-arg HUGO_ARCH=${{ matrix.arch }} \
|
||||||
--platform linux/${{ matrix.arch }} -f Dockerfile .
|
--platform linux/${{ matrix.arch }} --no-cache -f Dockerfile .
|
||||||
docker push ${{ env.REGISTRY }}/${{ env.REPOSITORY }}:latest-${{ matrix.arch }}
|
docker push ${{ env.REGISTRY }}/${{ env.REPOSITORY }}:latest-${{ matrix.arch }}
|
||||||
|
|
||||||
manifest:
|
manifest:
|
||||||
|
|||||||
@@ -61,4 +61,4 @@ jobs:
|
|||||||
token: ${{ secrets.TELEGRAM_TOKEN }}
|
token: ${{ secrets.TELEGRAM_TOKEN }}
|
||||||
format: markdown
|
format: markdown
|
||||||
message: |
|
message: |
|
||||||
Found **${{ steps.vulncount.outputs.VULNCOUNT }}** vulnerabilities in `${{ github.repository }}`
|
Found **${{ steps.vulncount.outputs.VULNCOUNT }}** vulnerabilities in `${{ env.REGISTRY }}/${{ env.REPOSITORY }}:latest`
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ RUN \
|
|||||||
apk --no-cache upgrade && \
|
apk --no-cache upgrade && \
|
||||||
apk --no-cache add curl jq && \
|
apk --no-cache add curl jq && \
|
||||||
LATEST_RELEASE=$(curl -L -s -H 'Accept: application/json' https://github.com/gohugoio/hugo/releases/latest | jq --raw-output ".tag_name" | sed 's/^v//' ) && \
|
LATEST_RELEASE=$(curl -L -s -H 'Accept: application/json' https://github.com/gohugoio/hugo/releases/latest | jq --raw-output ".tag_name" | sed 's/^v//' ) && \
|
||||||
LATEST_RELEASE=0.139.4 && \
|
echo "Using hugo release: ${LATEST_RELEASE}" && \
|
||||||
URL="https://github.com/gohugoio/hugo/releases/download/v${LATEST_RELEASE}/hugo_extended_${LATEST_RELEASE}_linux-${HUGO_ARCH}.tar.gz " && \
|
URL="https://github.com/gohugoio/hugo/releases/download/v${LATEST_RELEASE}/hugo_extended_${LATEST_RELEASE}_linux-${HUGO_ARCH}.tar.gz " && \
|
||||||
echo "Downloading: ${URL}" && \
|
echo "Downloading: ${URL}" && \
|
||||||
wget "${URL}" -O - | tar xzv -C /tmp
|
wget "${URL}" -O - | tar xzv -C /tmp
|
||||||
@@ -21,6 +21,6 @@ COPY --from=prep /tmp/hugo /usr/local/bin/hugo
|
|||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
apk --no-cache upgrade && \
|
apk --no-cache upgrade && \
|
||||||
apk --no-cache add git gcompat libstdc++
|
apk --no-cache add rclone git gcompat libstdc++
|
||||||
|
|
||||||
ENTRYPOINT [ "/usr/local/bin/hugo" ]
|
ENTRYPOINT [ "/usr/local/bin/hugo" ]
|
||||||
|
|||||||
Reference in New Issue
Block a user