Giter VIP home page Giter VIP logo

Comments (5)

crazy-max avatar crazy-max commented on May 20, 2024 6

Version 2 has been merged to the main branch and is therefore available via uses: docker/build-push-action@v2 (mutable tag).

As a reminder, this new version changes drastically and works with 3 new actions (login, setup-buildx and setup-qemu) that we have created. Many usage examples have been added to handle most use cases.

And it should fix this current issue. Don't hesitate if you have any questions.

from build-push-action.

EronWright avatar EronWright commented on May 20, 2024 5

Here's a workaround to use in combination with the tag_with_sha option. Simply put, compute the git short SHA and use it.

      - name: Get Git Short SHA
        id: slug
        run: echo "::set-output name=sha7::$(echo ${{ github.sha }} | cut -c1-7)"

      - name: Publish Docker Image
        uses: docker/build-push-action@v1
        with:
          repository: myorg/myrepository
          tag_with_sha: true

      - name: Use Docker Image (Example)
        run: docker pull "myorg/myrepository:sha-${{ steps.slug.outputs.sha7 }}"

from build-push-action.

crazy-max avatar crazy-max commented on May 20, 2024 5

This will be available through build-push-action v2 (#92).
You can already try it by combining it with:

from build-push-action.

meekrosoft avatar meekrosoft commented on May 20, 2024

Fantastic news, looking forward to this landing!

from build-push-action.

meekrosoft avatar meekrosoft commented on May 20, 2024

Brilliant, many thanks!

from build-push-action.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.