Skip to content
This repository was archived by the owner on Dec 22, 2024. It is now read-only.

Commit 6ce2209

Browse files
committed
beautify dockerfile, change to latest tag
1 parent 2dcf336 commit 6ce2209

3 files changed

Lines changed: 52 additions & 52 deletions

File tree

.github/vars.conf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
# auto-builder.yml
55
# ~~~~~~~~~~~~~~~~~~~~~~~
66

7-
TAGS='edge'
8-
LATEST='edge'
7+
TAGS=''
8+
LATEST=''
9+
910
BUILD_SCHEDULE=''
1011
BRANCH='main'
1112
DOCKERHUB_IMAGE='amp'

.github/workflows/auto-builder.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
- released
1111

1212
jobs:
13-
alpine-edge:
13+
alpine-latest:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Checkout
@@ -42,12 +42,11 @@ jobs:
4242
docker buildx build \
4343
--platform=linux/amd64,linux/arm64 \
4444
--output "type=image,push=true" \
45-
--build-arg TAG=edge \
45+
--build-arg TAG=latest \
4646
--build-arg BUILD_DATE="$(date +%Y-%m-%d)" \
4747
--build-arg VERSION=$(curl -sX GET "https://api.github.com/repos/hydazz/docker-amp/releases/latest" | jq -r .tag_name) \
48-
--tag vcxpz/amp:latest \
4948
--tag vcxpz/amp:$(curl -sX GET "https://api.github.com/repos/hydazz/docker-amp/releases/latest" | jq -r .tag_name) \
50-
--tag vcxpz/amp:edge \
49+
--tag vcxpz/amp:latest \
5150
--file Dockerfile .
5251
5352
- name: Get New Package Versions From Image
@@ -58,10 +57,10 @@ jobs:
5857
- name: Commit And Push Changes To Github
5958
run: |
6059
git add -A
61-
git commit -m "Bot Updating Files" || echo "No Changes"
62-
git push || echo "No Changes"
60+
git commit -m "Bot Updating Files" || true
61+
git push || true
6362
64-
- name: Sync README With Docker Hub
63+
- name: Sync README.md With Docker Hub
6564
uses: peter-evans/dockerhub-description@v2
6665
with:
6766
username: vcxpz

Dockerfile

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -9,50 +9,50 @@ LABEL maintainer="hydaz"
99

1010
# environment settings
1111
ENV VERSION=${VERSION} \
12-
HOME=/home/abc \
13-
USERNAME=admin \
14-
PASSWORD=password \
15-
MODULE=ADS \
16-
S6_SERVICES_GRACETIME=60000
12+
HOME=/home/abc \
13+
USERNAME=admin \
14+
PASSWORD=password \
15+
MODULE=ADS \
16+
S6_SERVICES_GRACETIME=60000
1717

18-
RUN set -x && \
19-
echo "**** install build packages ****" && \
20-
apk add --no-cache --virtual=build-dependencies \
21-
ca-certificates-mono && \
22-
echo "**** install runtime packages ****" && \
23-
apk add --no-cache --upgrade \
24-
curl \
25-
git \
26-
iputils \
27-
procps \
28-
socat \
29-
openjdk11-jre-headless \
30-
tmux \
31-
unzip && \
32-
echo "**** ensure abc has a shell ****" && \
33-
usermod -d /home/abc -m -s /bin/bash abc && \
34-
mkdir -p \
35-
/app/amp/ \
36-
/home/abc && \
37-
chown abc:abc /home/abc && \
38-
echo "**** download ampinstmgr.zip ****" && \
39-
curl --silent -o \
40-
/tmp/ampinstmgr.zip -L \
41-
"http://cubecoders.com/Downloads/ampinstmgr.zip" && \
42-
echo "**** unzip ampinstmgr and make symlinks ****" && \
43-
unzip -q \
44-
/tmp/ampinstmgr.zip -d \
45-
/app/amp/ && \
46-
ln -s /app/amp/ampinstmgr /usr/bin/ampinstmgr && \
47-
echo "**** download AMPCache-${VERSION//./}.zip ****" && \
48-
curl --silent -o \
49-
/app/amp/AMPCache-${VERSION//./}.zip -L \
50-
"http://cubecoders.com/Downloads/AMP_Latest.zip" && \
51-
echo "**** cleanup ****" && \
52-
apk del --purge \
53-
build-dependencies && \
54-
rm -rf \
55-
/tmp/*
18+
RUN \
19+
echo "**** install build packages ****" && \
20+
apk add --no-cache --virtual=build-dependencies \
21+
ca-certificates-mono && \
22+
echo "**** install runtime packages ****" && \
23+
apk add --no-cache --upgrade \
24+
curl \
25+
git \
26+
iputils \
27+
procps \
28+
socat \
29+
openjdk11-jre-headless \
30+
tmux \
31+
unzip && \
32+
echo "**** ensure abc has a shell ****" && \
33+
usermod -d /home/abc -m -s /bin/bash abc && \
34+
mkdir -p \
35+
/app/amp/ \
36+
/home/abc && \
37+
chown abc:abc /home/abc && \
38+
echo "**** download ampinstmgr.zip ****" && \
39+
curl --silent -o \
40+
/tmp/ampinstmgr.zip -L \
41+
"http://cubecoders.com/Downloads/ampinstmgr.zip" && \
42+
echo "**** unzip ampinstmgr and make symlinks ****" && \
43+
unzip -q \
44+
/tmp/ampinstmgr.zip -d \
45+
/app/amp/ && \
46+
ln -s /app/amp/ampinstmgr /usr/bin/ampinstmgr && \
47+
echo "**** download AMPCache-${VERSION//./}.zip ****" && \
48+
curl --silent -o \
49+
/app/amp/AMPCache-${VERSION//./}.zip -L \
50+
"http://cubecoders.com/Downloads/AMP_Latest.zip" && \
51+
echo "**** cleanup ****" && \
52+
apk del --purge \
53+
build-dependencies && \
54+
rm -rf \
55+
/tmp/*
5656

5757
# add local files
5858
COPY root/ /

0 commit comments

Comments
 (0)