8000 GitHub - HMasataka/github-actions
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

HMasataka/github-actions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Actions

Run

Manual

gh workflow run manual.yml -f greeting=goodbye

Variables

gh variable set USERNAME --body 'octocat'

Build

go build -o bin/example -ldflags "-X main.version=v1.2.3" go/example/main.go

Container Registry

Authentication

export GHCR_USER=$(gh config get -h github.com user)
gh auth refresh --scopes write:packages
gh auth token | docker login ghcr.io -u $GHCR_USER --password-stdin

Build docker image

docker build -t ghcr.io/${GHCR_USER}/example:latest docker/example/

Push/Push image

docker push ghcr.io/${GHCR_USER}/example:latest
docker pull ghcr.io/${GHCR_USER}/example:latest

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 
0