Compare commits
4 commits
Author | SHA1 | Date | |
---|---|---|---|
a9e2a0ae42 | |||
079e394db9 | |||
52f8826187 | |||
1ae6c44f38 |
2 changed files with 23 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
build-latest:
|
||||||
image: woodpeckerci/plugin-docker-buildx
|
image: woodpeckerci/plugin-docker-buildx
|
||||||
settings:
|
settings:
|
||||||
repo: gitea.simcop2387.info/simcop2387/ai-perl-base
|
repo: gitea.simcop2387.info/simcop2387/ai-perl-base
|
||||||
|
@ -10,5 +10,18 @@ steps:
|
||||||
username: simcop2387
|
username: simcop2387
|
||||||
password:
|
password:
|
||||||
from_secret: docker_token
|
from_secret: docker_token
|
||||||
|
when:
|
||||||
|
- branch: master
|
||||||
|
build-release:
|
||||||
|
image: woodpeckerci/plugin-docker-buildx
|
||||||
|
settings:
|
||||||
|
repo: gitea.simcop2387.info/simcop2387/ai-perl-base
|
||||||
|
registry: gitea.simcop2387.info
|
||||||
|
auto_tag: true
|
||||||
|
mirror: "https://docker-registry-cache.simcop2387.info"
|
||||||
|
username: simcop2387
|
||||||
|
password:
|
||||||
|
from_secret: docker_token
|
||||||
|
when:
|
||||||
|
- event: tag
|
||||||
|
|
||||||
|
|
10
Dockerfile
10
Dockerfile
|
@ -4,6 +4,12 @@ RUN apt update && apt install -y perlbrew curl
|
||||||
RUN perlbrew init && perlbrew install --verbose perl-5.38.0
|
RUN perlbrew init && perlbrew install --verbose perl-5.38.0
|
||||||
|
|
||||||
RUN perlbrew use perl-5.38.0
|
RUN perlbrew use perl-5.38.0
|
||||||
RUN echo "source /root/perl5/perlbrew/etc/bashrc && perlbrew switch current" >> ~/.bashrc
|
RUN echo "source /root/perl5/perlbrew/etc/bashrc && perlbrew switch perl-5.38.0" >> ~/.bashrc
|
||||||
|
|
||||||
RUN perlbrew install-cpanm
|
ENV PERLBREW_ROOT=/root/perl5/perlbrew
|
||||||
|
ENV PERLBREW_HOME=/root/.perlbrew
|
||||||
|
ENV PERLBREW_PATH=/root/perl5//perlbrew/bin:/root/perl5/perlbrew/perls/perl-5.38.0/bin
|
||||||
|
ENV PATH=${PERLBREW_PATH}:${PATH}
|
||||||
|
ENV PERLBREW_MANPATH=/root/perl5/perlbrew/perls/perl-5.38.0/man
|
||||||
|
|
||||||
|
RUN perlbrew install-cpanm && cpanm install --verbose Carton
|
||||||
|
|
Loading…
Add table
Reference in a new issue