Live data from Hacker News

GitHub Actions is my new favorite free programming tool [video]

bytesized.xyz

51–60 of 134 posts

Re: GitHub Actions is my new favorite free programming tool [video]

#51
post #34

Earlier quoted context omitted.

I'm not sure if this is the 'right way' or not, but for a recent Go project, I just scripted the build via - name: build run: | docker run --rm -v \ "$PWD":/usr/src/my-project \ -w /usr/src/my-project \ -e GOOS -e GOARCH \ golang:1.13 go build -v -o my-project-$GOOS-$GOARCH env: GOOS: ${{ matrix.os }} GOARCH: ${{ matrix.arch }} (GitHub Actions's build environment already has Docker installed/configured, so there's no…

I like this approach as well, though I typically include a `Dockerfile` in my Go projects so my run task is just: - name: Build run: docker build -t me/image:latest . env: DOCKER_BUILDKIT: 1 GOOS: ${{ matrix.os }} GOARCH: ${{ matrix.arch }}

Ah, well, the output of what I wrote above isn't actually a Docker image. It ends up writing a cross-compiled binary to the local FS, which I then later attach to a GitHub Release. (The goal was to automatically attach platform binaries to a release once it was made.)

...unless your Dockerfile ends up doing that too? If so I'd be interested to see it if you're willing to share!

Re: GitHub Actions is my new favorite free programming tool [video]

#52
post #46

Earlier quoted context omitted.

Github actions is most definitely using Azure build pipelines behind the scenes. Microsoft is smart about boosting revenue figures. Id be shocked if this wasnt the case.

I am afraid that Microsoft will kill GitHub stuff in favor of azure stuff, but I think the risk is low because it seems like GitHub’s whole purchase was for goodwill. If I had to bet, I think “azure devops” will go away and GitHub will eat it. Currently the Actions free tier is cheaper than using azure build pipelines which is kind of weird, but nice for GitHub users. I think it’s because GitHub is a limited subset (…

I'm convinced their goal is to leverage GitHub to win the cloud wars and that they'll keep porting all of their Azure products onto it until GitHub is the cloud provider.

I bet we'll see a click to deploy button on github for most common web frameworks soon.

Having your git history hooked up to your deployed infrastructure will allow them to do some amazing things around live debugging. (similar to what google is doing with cloud source repositories https://cloud.google.com/debugger/).

Re: GitHub Actions is my new favorite free programming tool [video]

#53
post #6
post #2

What's up with so many YouTube video's (including this one) having ALL CAPS titles?! It makes me not want to watch them, although it may be different for the general public for some reason ... ??

It's because YOU WILL NOTICE THIS ONE in a list of other normal text

But it doesn't work in Hebrew.

Re: GitHub Actions is my new favorite free programming tool [video]

#54

Earlier quoted context omitted.

I am with you on this. It seems to be a new trend: “show users how to do a hello world” which was disregarded in the past... but somehow that turned into “instead of providing real documentation” rather than “in addition to.” It’s not just GitHub. There’s a language I (and the rest of HN) love that has adopted “story format” for documentation but is missing real, hard technical documentation apart from method-level c…

Someone please tell the Google Cloud Platform teams this. So many hello world examples which reek of, "I was told to write documentation but I really hate writing documentation". I mean this in good faith, I think writing documentation for a product you don't actually use is a miserable experience and I hope they can find a better balance... Writing documentation also seems to be a task you kick out to your junior de…

Android docs feel the same way, with a side of "eh, just make the interns do it".

Re: GitHub Actions is my new favorite free programming tool [video]

#56
post #55

Tried it out a week ago, but the docs weren't too helpful and the build templates I found were buggy.

That seems to br the general sentiment in this thread. I hope somebody of power within Github is reading this, or someone that can pass the info along to such a person.

Re: GitHub Actions is my new favorite free programming tool [video]

#57

Github actions is nice but I think they go to wrong direction. The way they work is you are given an image then you have to use a thing call Github action, which basically just to extract out into YAML to define a certain steps for install any dependencies, execute shell script ... I don't know why they didn't allow us to use any docker image we want so we don't have to waste time to use actions to install dependenci…

If you want to run within a container so that you don't have to install dependencies, that's no problem. Just specify it as `jobs..container`. GitHub Actions will download and start that container, and any `run` commands that you specify within that job will run within that container.

Without that, they'll run directly on the virtual machine that you specify.

Re: GitHub Actions is my new favorite free programming tool [video]

#58
post #12

I had to setup CI for a GitHub open source project recently, and decided to give GitHub Actions a try. I have to say it's pretty nice to have the CI directly handled by GH (GitLab has been doing it for years, I know...). I hope it's gonna help some open source projects to easily add CI validations to their PR workflow. That being said, there was only Ubuntu images for the Linux builds, and I'm not aware of a way to r…

Indeed, GitHub Actions only has ubuntu virtual machines, but you can run a custom container with the `jobs..container` specifier.

Re: GitHub Actions is my new favorite free programming tool [video]

#59
post #36

Earlier quoted context omitted.

I am with you on this. It seems to be a new trend: “show users how to do a hello world” which was disregarded in the past... but somehow that turned into “instead of providing real documentation” rather than “in addition to.” It’s not just GitHub. There’s a language I (and the rest of HN) love that has adopted “story format” for documentation but is missing real, hard technical documentation apart from method-level c…

I assume you’re talking about Go here?

Possibly Typescript. Try finding documentation for the bundled "Record" type. It seems you're supposed to just know how to use it already.

Re: GitHub Actions is my new favorite free programming tool [video]

#60

Earlier quoted context omitted.

I am with you on this. It seems to be a new trend: “show users how to do a hello world” which was disregarded in the past... but somehow that turned into “instead of providing real documentation” rather than “in addition to.” It’s not just GitHub. There’s a language I (and the rest of HN) love that has adopted “story format” for documentation but is missing real, hard technical documentation apart from method-level c…

Someone please tell the Google Cloud Platform teams this. So many hello world examples which reek of, "I was told to write documentation but I really hate writing documentation". I mean this in good faith, I think writing documentation for a product you don't actually use is a miserable experience and I hope they can find a better balance... Writing documentation also seems to be a task you kick out to your junior de…

If there's one documentation that I hate with my gut, that is GCP documentation. Like wtf is going on there. Just to give you an example of how horrible it is, just check their Vision documentation: https://cloud.google.com/vision/docs/

They have quick starts, tutorials and how-to-guides. How are even those things conceptually different at all?. And their reference is just a list of their methods like if I knew out of the box how to use your API. Like, what the heck. Just tell me how to talk to your API in simple terms. How hard is it?

"To use the CGP vision API there are two ways to authenticate and connect. 1) REST 2) SDKS" and then just explain to me how to do it simply.

Don't ramble like if this was the fucking Iliad. Go straight to the point and organize your information better.

Post reply on HN