Comments (5)
Give this a shot and let me know if it fixes your issue.
tag: latest-${{ env.VERSION }}
from docker-build-push.
It doesn't work
Error: Command failed: docker build -f Dockerfile -t rg.nl-ams.scw.cloud/myfolder/myapp:latest-*** .
- uses: mr-smithers-excellent/docker-build-push@v3
name: Build & push Docker image
with:
image: myimage
tag: latest-${{ env.VERSION }}
registry: rg.nl-ams.scw.cloud/myapp
dockerfile: Dockerfile
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
env:
VERSION: ${{ secrets.VERSION }}
This is just because github secret appears like ***
fuck.
from docker-build-push.
Why are you setting the VERSION
variable as a secret? I'd recommend simply setting it as an environment variable. The problem you're trying to solve here isn't specific to this GitHub Action, but a general problem with how you're passing variables through your action config. I'd make sure you comb through the docs on context and expression syntax as well as environment variables.
from docker-build-push.
Because I don't want the user to change the version from latest-345
to latest-346
everytime
And I don't want to use your module because if you make a commit you must make a git pull for the user
I must make a version upgrade everytime for Kubernetes, otherwise this dickhead of Kubernetes charts doesn't make a pull of an image it already has downloaded once. Even if you use the Kubernetes options imagePullPolicy: Always
from docker-build-push.
Thanks for helping me bro, I just found the solution myself.
Just use git tag
. https://github.com/marketplace/actions/git-tag-generator
I haven't ever heard about git tag
but this will do the job
from docker-build-push.
Related Issues (20)
- Set output warning when running this action HOT 7
- Github action Error: Dockerfile does not exist in location Dockerfile HOT 8
- Build The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. HOT 7
- Docker Push without build HOT 2
- Support for pull_request event
- Support for pull_request event HOT 6
- Output image SHA256 digest(s) HOT 4
- ERROR: failed to solve: Internal: header key "exclude-patterns" contains value with non-printable ASCII characters HOT 3
- Why is my organization's name a secret? HOT 1
- How do I find the correct registry and image name to use? HOT 2
- Any plan to support Azure Container Registries? HOT 4
- Exit Code 1 after pushing latest tag HOT 1
- Is it possible to cache node_modules that were installed in Dockerfile? HOT 1
- "Node.js 16 actions are deprecated" warning HOT 1
- Action fails pipeline if credentials are not supplied HOT 9
- Not working with Artifact Registry HOT 2
- Conditionally Setting `addLatest` does not work for truthy values HOT 1
- Why is there no switch to set whether to push all tags? HOT 4
- Input multiPlatform is set to true, skipping Docker push step HOT 2
- How to push latest tag only upon releases HOT 1
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 docker-build-push.