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

Warning: The save-state command is deprecated and will be disabled soon. #779

Closed
spkane opened this issue Jan 24, 2023 · 1 comment
Closed

Comments

@spkane
Copy link

spkane commented Jan 24, 2023

Troubleshooting

Before submitting a bug report please read the Troubleshooting doc.

Behaviour

Steps to reproduce this issue

  1. use the GitHub action (likely for anything at all)

Expected behaviour

There should be no warnings under normal circumstances.

Actual behaviour

I get this warning in the output:

Warning: The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

CleanShot 2023-01-24 at 13 33 03@2x

Configuration

  • Repository URL (if public): private
  • Build URL (if public): private
name: Build Container Image

on:
  push:
    branches:
      - 'main'

jobs:
  buildx:
    runs-on: ubuntu-latest
    environment: docker-hub
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Set up QEMU
        uses: docker/setup-qemu-action@v1
      - name: Set up Docker Buildx
        id: buildx
        uses: docker/setup-buildx-action@v1
      - name: Available platforms
        run: echo ${{ steps.buildx.outputs.platforms }}
      - name: Login to DockerHub
        uses: docker/login-action@v1
        with:
          username: ${{ secrets.DOCKERHUB_USERNAME }}
          password: ${{ secrets.DOCKERHUB_TOKEN }}
      - name: Build and push
        id: docker_build
        uses: docker/build-push-action@v2
        with:
          context: ./_containers/runner/
          file: ./_containers/runner/Dockerfile
          platforms: linux/amd64,linux/arm64
          push: true
          tags: me/runner:latest
      - name: Image digest
        run: echo ${{ steps.docker_build.outputs.digest }}

Logs

N/A

@crazy-max
Copy link
Member

This is already fixed since https://github.com/docker/build-push-action/releases/tag/v3.0.0

Use uses: docker/build-push-action@v3.

zzz6839 added a commit to zzz6839/nonebot-bison that referenced this issue Jun 25, 2023
Fix: Warning: The save-state command is deprecated and will be disabled soon.

P.S. This could potentially fix the  "Package 'python-dev' has no installation candidate" issue too.

docker/build-push-action#779
felinae98 added a commit to MountainDash/nonebot-bison that referenced this issue Jul 18, 2023
* update dependencies

Fix: Warning: The save-state command is deprecated and will be disabled soon.

P.S. This could potentially fix the  "Package 'python-dev' has no installation candidate" issue too.

docker/build-push-action#779

* try to fix docker main not pass issue

* ⏪ revert dockerfile change

---------

Co-authored-by: felinae98 <[email protected]>
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

No branches or pull requests

2 participants