Compare commits
11 Commits
6f4a6fdedc
...
0.0.9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f8d598fc29 | ||
|
|
95854ddd05 | ||
| d97dc0d987 | |||
| 15717fff54 | |||
| 84df07759c | |||
| 0a60f500a4 | |||
| b0262ab897 | |||
| 40cb279e2e | |||
| da754ca754 | |||
| ae99faf486 | |||
|
|
a51f619dbe |
@@ -10,14 +10,11 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: gitea.sjs.io
|
|
||||||
IMAGE_NAME: rocky-dev
|
IMAGE_NAME: rocky-dev
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
|
||||||
image: gitea/runner-images:ubuntu-latest
|
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
@@ -36,7 +33,7 @@ jobs:
|
|||||||
- name: Log in to registry
|
- name: Log in to registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ${{ env.REGISTRY }}
|
registry: ${{ vars.REGISTRY }}
|
||||||
username: ${{ vars.USERNAME }}
|
username: ${{ vars.USERNAME }}
|
||||||
password: ${{ secrets.PASS }}
|
password: ${{ secrets.PASS }}
|
||||||
|
|
||||||
@@ -44,7 +41,7 @@ jobs:
|
|||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
with:
|
with:
|
||||||
images: ${{ env.REGISTRY }}/${{ vars.USERNAME }}/${{ env.IMAGE_NAME }}
|
images: ${{ vars.REGISTRY }}/${{ vars.USERNAME }}/${{ env.IMAGE_NAME }}
|
||||||
tags: |
|
tags: |
|
||||||
# Only tag with version and latest on tag push
|
# Only tag with version and latest on tag push
|
||||||
type=semver,pattern={{version}},enable=${{ startsWith(github.ref, 'refs/tags/') }}
|
type=semver,pattern={{version}},enable=${{ startsWith(github.ref, 'refs/tags/') }}
|
||||||
|
|||||||
40
Dockerfile
40
Dockerfile
@@ -1,6 +1,6 @@
|
|||||||
FROM rockylinux:9
|
FROM rockylinux/rockylinux:9
|
||||||
|
|
||||||
RUN dnf update -y && \
|
RUN dnf install -y epel-release && \
|
||||||
dnf install -y \
|
dnf install -y \
|
||||||
iputils \
|
iputils \
|
||||||
iproute \
|
iproute \
|
||||||
@@ -12,14 +12,38 @@ RUN dnf update -y && \
|
|||||||
vim \
|
vim \
|
||||||
jq \
|
jq \
|
||||||
createrepo_c \
|
createrepo_c \
|
||||||
python3-pip && \
|
golang \
|
||||||
|
python3-pip \
|
||||||
|
git \
|
||||||
|
tree \
|
||||||
|
tmux \
|
||||||
|
nano \
|
||||||
|
unzip \
|
||||||
|
tar \
|
||||||
|
gzip \
|
||||||
|
rsync \
|
||||||
|
nmap-ncat \
|
||||||
|
telnet \
|
||||||
|
bind-utils \
|
||||||
|
tcpdump \
|
||||||
|
strace \
|
||||||
|
lsof \
|
||||||
|
openssh-clients \
|
||||||
|
nodejs \
|
||||||
|
npm && \
|
||||||
dnf group install -y "Development Tools" && \
|
dnf group install -y "Development Tools" && \
|
||||||
dnf clean all && \
|
dnf clean all
|
||||||
case "$(uname -m)" in \
|
|
||||||
x86_64) wget "https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64" -O /usr/local/bin/yq ;; \
|
RUN set -e && \
|
||||||
aarch64) wget "https://github.com/mikefarah/yq/releases/latest/download/yq_linux_arm64" -O /usr/local/bin/yq ;; \
|
ARCH=$(uname -m) && \
|
||||||
|
case "$ARCH" in \
|
||||||
|
x86_64) YQ_ARCH="amd64" ;; \
|
||||||
|
aarch64) YQ_ARCH="arm64" ;; \
|
||||||
*) echo "Unsupported architecture: $ARCH" && exit 1 ;; \
|
*) echo "Unsupported architecture: $ARCH" && exit 1 ;; \
|
||||||
esac && \
|
esac && \
|
||||||
chmod +x /usr/local/bin/yq
|
wget "https://github.com/mikefarah/yq/releases/download/v4.35.1/yq_linux_${YQ_ARCH}" -O /usr/local/bin/yq && \
|
||||||
|
chmod +x /usr/local/bin/yq && \
|
||||||
|
echo "alias ll='ls -l --color=auto'" >> /root/.bashrc && \
|
||||||
|
echo "alias ls='ls --color=auto'" >> /root/.bashrc
|
||||||
|
|
||||||
CMD ["/bin/bash"]
|
CMD ["/bin/bash"]
|
||||||
Reference in New Issue
Block a user