Skip to content

Commit

Permalink
add github action to build and push the image once per week
Browse files Browse the repository at this point in the history
  • Loading branch information
gbxyz committed May 23, 2024
1 parent 1155542 commit 1aa40bc
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 4 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build

on:
push:
branches:
- main
workflow_dispatch:
schedule:
- cron: '22 3 * * 7'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Log in
uses: docker/login-action@v3
with:
username: gbxyz
password: ${{secrets.DOCKER_PASSWORD}}

- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: gbxyz/rdapper:latest
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ MYMETA.*
META.*
MANIFEST
MANIFEST.old

.secrets
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
FROM perl:latest
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get upgrade -qqq
RUN cpanm -n App::rdapper
RUN cpanm -qn App::rdapper
ENTRYPOINT ["/usr/local/bin/rdapper"]

0 comments on commit 1aa40bc

Please sign in to comment.