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

fix: add ac claim for old docker/build-push-action@v3 and make buildx gha cache work #311

Merged
merged 2 commits into from
Mar 4, 2024

Conversation

ChristopherHX
Copy link
Owner

@ChristopherHX ChristopherHX commented Mar 4, 2024

Also resolves a warning for current releases

| ##[group]GitHub Actions runtime token ACs
| ##[warning]Cannot parse GitHub Actions Runtime Token ACs: "undefined" is not valid JSON
| ##[endgroup]
====>
| ##[group]GitHub Actions runtime token ACs
| ##[endgroup]

also cache now works if run via --interactive or enabling sqlite persistence

on:
  push:
  
jobs:
  docker:
    runs-on: self-hosted
    permissions:
      contents: read
      packages: write
    steps:
    - uses: actions/checkout@v3
    -
      name: Set up QEMU
      uses: docker/setup-qemu-action@v2
    -
      name: Set up Docker Buildx
      uses: docker/setup-buildx-action@v2
    -
    - run: |
        echo "LOWNER<<EOF23" >> $GITHUB_ENV
        echo $(echo "$OWNER" | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV
        echo "EOF23" >> $GITHUB_ENV        
      shell: bash
      env:
        OWNER: ${{github.repository_owner}}
    -
      name: Build and push
      uses: docker/build-push-action@v5
      with:
        context: .
        file: Dockerfile
        platforms: linux/amd64
        load: true
        cache-from: type=gha
        cache-to: type=gha,mode=max
        tags: test:test

@ChristopherHX ChristopherHX changed the title fix: add ac claim for old docker/build-push-actions@v3 fix: add ac claim for old docker/build-push-action@v3 Mar 4, 2024
@ChristopherHX ChristopherHX changed the title fix: add ac claim for old docker/build-push-action@v3 fix: add ac claim for old docker/build-push-action@v3 and make buildx gha cache work Mar 4, 2024
@ChristopherHX ChristopherHX merged commit 48cf37a into main Mar 4, 2024
38 checks passed
@ChristopherHX ChristopherHX deleted the add-ac-claim branch March 4, 2024 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant