add build steps.
All checks were successful
Deploy Docker Images / Docusaurus build and Server deploy (push) Successful in 9m38s
All checks were successful
Deploy Docker Images / Docusaurus build and Server deploy (push) Successful in 9m38s
This commit is contained in:
parent
6671820e77
commit
8bccf894ab
@ -13,6 +13,12 @@ jobs:
|
||||
with:
|
||||
files: |
|
||||
**.dockerfile
|
||||
- name: Log in to Docker Registry
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: frp-by1.wwvvww.cn:45288
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
- name: Build docker image and deploy.
|
||||
run: |
|
||||
for file in ${{ steps.changed-dockerfiles.outputs.all_changed_files }}; do
|
||||
|
@ -8,7 +8,7 @@ ENV ACT_VERSION 0.2.10
|
||||
|
||||
RUN sed -i 's@//.*archive.ubuntu.com@//mirrors.ustc.edu.cn@g' /etc/apt/sources.list.d/ubuntu.sources \
|
||||
&& apt update \
|
||||
&& apt install -y ca-certificates curl git tini \
|
||||
&& apt install -y ca-certificates curl git gettext jq tini \
|
||||
&& curl https://gitea.com/gitea/act_runner/releases/download/v${ACT_VERSION}/act_runner-${ACT_VERSION}-linux-amd64 -o /usr/local/bin/act_runner \
|
||||
&& chmod +x /usr/local/bin/act_runner \
|
||||
&& install -m 0755 -d /etc/apt/keyrings \
|
||||
@ -23,5 +23,5 @@ COPY resources/act_runner.sh /opt/act/run.sh
|
||||
|
||||
ENTRYPOINT ["tini","--","/opt/act/run.sh"]
|
||||
|
||||
# docker build --progress tty -f act_runner.dockerfile -t act_runner:0.2.10 .
|
||||
# docker tag act_runner:0.2.10 frp-by1.wwvvww.cn:45288/act_runner:0.2.10
|
||||
# docker build --progress tty -f act_runner.dockerfile -t frp-by1.wwvvww.cn:45288/act_runner:0.2.10 .
|
||||
# docker push frp-by1.wwvvww.cn:45288/act_runner:0.2.10
|
@ -3,6 +3,18 @@
|
||||
function build() {
|
||||
local DOCKERFILE=$1
|
||||
echo "build $DOCKERFILE"
|
||||
if [[ $DOCKERFILE == *"act_runner.dockerfile" ]]; then
|
||||
docker build -f $DOCKERFILE -t frp-by1.wwvvww.cn:45288/act_runner:0.2.10 .
|
||||
docker push frp-by1.wwvvww.cn:45288/act_runner:0.2.10
|
||||
elif [[ $DOCKERFILE == *"nanopb.dockerfile" ]]; then
|
||||
docker build -f $DOCKERFILE -t frp-by1.wwvvww.cn:45288/nanopb:0.3.9.3 .
|
||||
docker push frp-by1.wwvvww.cn:45288/nanopb:0.3.9.3
|
||||
elif [[ $DOCKERFILE == *"ubuntu2404.dockerfile" ]]; then
|
||||
docker build -f $DOCKERFILE -t frp-by1.wwvvww.cn:45288/ubuntu_dev:24.04 .
|
||||
docker push frp-by1.wwvvww.cn:45288/ubuntu_dev:24.04
|
||||
else
|
||||
echo "not found steps for build $DOCKERFILE ..."
|
||||
fi
|
||||
}
|
||||
|
||||
function deploy(){
|
||||
|
Loading…
Reference in New Issue
Block a user