Comments (5)
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.
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.
This will be available through build-push-action v2 (#92).
You can already try it by combining it with:
- https://github.com/docker/setup-buildx-action
- https://github.com/docker/setup-qemu-action
- https://github.com/docker/login-action
from build-push-action.
Fantastic news, looking forward to this landing!
from build-push-action.
Brilliant, many thanks!
from build-push-action.
Related Issues (20)
- Caching Multiple Container Builds HOT 1
- Error: buildx failed with: ERROR: failed to solve: failed to read dockerfile: open Dockerfile: no such file or directory HOT 2
- `fatal: Not a valid object name` during `load git source` triggered by `on: push:` (with self-hosted runner) HOT 2
- Not all files present in final build when using `context` HOT 1
- Cache from different multi platform builds doesn't get used HOT 1
- Issue with git clone when the repo include submodules from other repositories HOT 3
- Add support for --progress CLI option
- Use a custom README file for the GitHub package rather than the main project README
- Build image from specific ref HOT 2
- Fail to export cache HOT 6
- x509: certificate signed by unknown authority when importing and exporting cache to self hosted GHE
- buildx failed with: ERROR: attestations are not supported by the current buildkitd HOT 2
- Access to main branch cache form feature branch
- ERROR: failed to solve: failed to read dockerfile: open Dockerfile: no such file or directory HOT 3
- 400 Bad Request HOT 4
- fatal: could not read Username for 'https://github.com': No such device or address HOT 1
- Path context error when copying file from nested Dockerfile HOT 1
- Local image not being recognized by workflow, using named context doesn't help
- Error: buildx failed with: ERROR: failed to solve: failed to push can't push tagged ref by digest HOT 1
- Support multiple cache-from arguments
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from build-push-action.