Comments (12)
@jokkedk I'd be happy to help out however I can. If you go to Settings ➔ Secrets ➔ Actions, you can add your Dockerhub credentials to the "Repository secrets" as, e.g., DOCKERHUB_TOKEN
and DOCKERHUB_USERNAME
.
Then you can add a GitHub Action to push to DockerHub on release by creating a file, e.g. .github/workflows/build-release.yml
. The simplest example would be:
name: Build Release
on:
release:
types: [published]
jobs:
build-release:
runs-on: ubuntu-20.04
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push image
uses: docker/build-push-action@v2
with:
push: true
tags: jokkedk/webgrind:latest
If it would help, I can submit this as a PR, but we would probably need some back-and-forth to get this all configured properly to your liking.
from webgrind.
I just forked this repo and created a DockerHub repo and can confirm that I have 1.9 working on my fork using @hemberger 's instructions ( there is a typo present in the above ..yaml
)
Full Instructions:
- Log into DockerHub
- In your user account menu (top right avatar) go to Account Settings
- Go to Security > Add New Access Token call it "GitHub Actions" or whatever
- Make a note of your access token
- Go to this repo's Github Secrets
- Add two new secrets:
DOCKERHUB_USERNAME
andDOCKERHUB_TOKEN
(the access token recently copied from DockerHub) - Create the file
.github/workflows/build-release.yml
name: Build Release
on:
release:
types: [published]
jobs:
build-release:
runs-on: ubuntu-20.04
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push image
uses: docker/build-push-action@v2
with:
push: true
tags: jokkedk/webgrind:latest
- Then tag and publish a new release of this repo, the Docker image action will run and push the image to Docker.
- 💷 Profit then 🥳 party.
from webgrind.
( there is a typo present in the above
.yaml
)
The typo has been fixed, and now our snippets are identical. Thanks for pointing it out (and for the additional testing)!
from webgrind.
Thank you for helping!
I've set up the action and tagged a new release. Seems to be working 🥳
Ideally the action would mark the docker image with the release tag, e.g. v1.9.1, but at least it is updating now. It should be possible to grab tags with docker/metadata-action.
from webgrind.
Hmm thought it was supposed to auto update. I do not have write access to Docker; @jokkedk could you take a look into it?
from webgrind.
This is probably due to the fact that DockerHub removed free automated builds for open source projects (due to cryptominer abuse) in June 2021. This blog post has more details: https://www.docker.com/blog/changes-to-docker-hub-autobuilds/.
It's very easy to use GitHub Actions to update DockerHub images (see, e.g., smrealms/smr@25776ee), but you do need to store the DockerHub credentials as repository secrets. I'm happy to help with a PR, but we probably still need @jokkedk's attention on this either way.
from webgrind.
I'm totally ignorant when it comes to Docker images, but is there any way to force 1.9 via docker-compose?
from webgrind.
Apologies for much lag. I am not sure what I ned to do to get Docker to update. Any pointers appreciated.
from webgrind.
No stress.
As @hemberger says, it looks like the docker image has to use GitHub Actions to be created. You need access to create GitHub repo secrets for use in the action.
Approach 2 from this article looks promising: https://davelms.medium.com/build-your-docker-images-automatically-when-pushing-new-code-to-github-394f4c1679cc
from webgrind.
Any progress here?
from webgrind.
Ideally the action would mark the docker image with the release tag, e.g. v1.9.1, but at least it is updating now. It should be possible to grab tags with docker/metadata-action.
I've submitted a PR that should do this, I don't have a great way to test it though.
from webgrind.
I believe this was fixed
from webgrind.
Related Issues (20)
- Callgrind files HOT 1
- PHP Errors after install on Mac OS HOT 3
- Unable to build docker image
- No output after loading a cachegrind file HOT 12
- Unable to generate call graph on Windows
- JavaScript Error on Version Check
- Compressed Xdebug callgrind files fail to generate call graphs HOT 1
- Filter call graph
- Issue (help/support/misconfiguration) HOT 1
- unable to generate although python3 and dot are installed HOT 2
- BUG - All Profiling files permanently dissapearing from dropdown on reload
- Allow user to upload file directly HOT 1
- recursive call make function total inclusive cost greater than {main}
- Cannot set properties of undefined (setting 'count')
- docker image for arm64 (Apple M-series processors) HOT 3
- Generated function graph svg is empty
- BlockUI not compatible with updated version of jquery HOT 1
- JavaScript error because of removal of $.browser from jQuery HOT 4
- PHP 8.2 - Deprecated Creation of Dynamic properties 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 webgrind.