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

[v2] "post" steps are executed in a random order #1

Closed
AkihiroSuda opened this issue Sep 13, 2023 · 2 comments
Closed

[v2] "post" steps are executed in a random order #1

AkihiroSuda opened this issue Sep 13, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@AkihiroSuda
Copy link
Member

https://github.com/reproducible-containers/buildkit-cache-dance/actions/runs/6175782567/job/16763351153

image

Post inject var-lib-apt into docker is executed before Post Cache var-lib-apt, but Post inject var-cache-apt is executed after Post Cache var-cache-apt

- name: Cache var-cache-apt
uses: actions/cache@v3
with:
path: var-cache-apt
key: var-cache-apt-${{ hashFiles('.github/workflows/test/Dockerfile') }}
- name: Cache var-lib-apt
uses: actions/cache@v3
with:
path: var-lib-apt
key: var-lib-apt-${{ hashFiles('.github/workflows/test/Dockerfile') }}
- name: inject var-cache-apt into docker
uses: ./
with:
cache-source: var-cache-apt
cache-target: /var/cache/apt
- name: inject var-lib-apt into docker
uses: ./
with:
cache-source: var-lib-apt
cache-target: /var/lib/apt

@AkihiroSuda AkihiroSuda added the bug Something isn't working label Sep 13, 2023
@AkihiroSuda AkihiroSuda mentioned this issue Sep 13, 2023
@AkihiroSuda
Copy link
Member Author

AkihiroSuda commented Sep 13, 2023

Fixed in #4 (v2.1.0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant