Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Cache podman layers in GitHub workflows (#12) #43

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ jobs:
name: Build and test latest code changes
runs-on: ubuntu-latest
steps:
- name: Setup cache
uses: actions/cache@v2
with:
key: querido-diario-cache
path: |
~/.local/share/containers

- name: Checkout source code
uses: actions/checkout@master

Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/release_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ jobs:
name: Release tag
runs-on: ubuntu-latest
steps:
- name: Setup cache
uses: actions/cache@v2
with:
key: querido-diario-cache
path: |
~/.local/share/containers

- name: Checkout source code
uses: actions/checkout@master

Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/test_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ jobs:
name: Build, test and show code coverage
runs-on: ubuntu-latest
steps:
- name: Setup cache
uses: actions/cache@v2
with:
key: querido-diario-cache
path: |
~/.local/share/containers

- name: Checkout source code
uses: actions/checkout@master

Expand Down
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt && rm requirements.txt

RUN mkdir /mnt/code
COPY . /mnt/code
WORKDIR /mnt/code
ENV PYTHONPATH=/mnt/code

ADD https://querido-diario.nyc3.cdn.digitaloceanspaces.com/censo/censo.csv censo.csv
RUN chmod 644 censo.csv

COPY . /mnt/code

USER gazette