Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
blacktop committed Sep 18, 2019
1 parent ef7319e commit 30fc2fc
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 17 deletions.
27 changes: 14 additions & 13 deletions .github/workflows/go.yml
@@ -1,24 +1,25 @@
name: Go
on: [push]
jobs:

build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13
id: go

- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v1

- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: Get dependencies
run: |
go mod download
- name: Get dependencies
run: |
go mod download
- name: Run Help
run: CGO_ENABLED=1 go run cmd/ipsw/main.go --help

- name: Run
run: CGO_ENABLED=0 go run cmd/ipsw/main.go --help
- name: Run Device List
run: CGO_ENABLED=1 go run cmd/ipsw/main.go device list
12 changes: 9 additions & 3 deletions Makefile
Expand Up @@ -60,14 +60,14 @@ bump: ## Incriment version patch number
.PHONY: release
release: bump ## Create a new release from the VERSION
@echo " > Creating Release"
@hack/make/release $(shell cat VERSION)
@hack/make/release v$(shell cat VERSION)
@goreleaser --rm-dist

destroy: ## Remove release from the VERSION
@echo " > Deleting Release"
rm -rf dist
git tag -d ${VERSION}
git push origin :refs/tags/${VERSION}
git tag -d v${VERSION}
git push origin :refs/tags/v${VERSION}

ci: lint test ## Run all the tests and code checks

Expand All @@ -80,6 +80,12 @@ docker: ## Build docker image
@echo "===> Building Docker Image"
docker build -t $(REPO)/$(NAME):$(VERSION) .

docker-tag:
docker tag $(REPO)/$(NAME):$(VERSION) docker.pkg.github.com/blacktop/ipsw/$(NAME):$(VERSION)

docker-push: docker-tag
docker push docker.pkg.github.com/blacktop/ipsw/$(NAME):$(VERSION)

.PHONY: test-docker
test-docker: ## Run docker test
@echo "===> Testing Docker Image"
Expand Down
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
v19.08.36
19.08.36

0 comments on commit 30fc2fc

Please sign in to comment.