Skip to content

Commit

Permalink
update release command
Browse files Browse the repository at this point in the history
  • Loading branch information
ajatprabha committed Jun 12, 2023
1 parent f8b6569 commit b600ec4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 109 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Expand Up @@ -9,12 +9,13 @@ on:

jobs:
release:
name: Docker Push
name: GoReleaser Build & Push
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build Push
env:
GOLANG_CROSS_VERSION: 1.20.5
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
Expand All @@ -27,7 +28,7 @@ jobs:
-e DOCKER_USERNAME \
-e DOCKER_PASSWORD \
ghcr.io/goreleaser/goreleaser-cross \
/bin/bash -c "echo $DOCKER_PASSWORD | docker login docker.io --username $DOCKER_USERNAME --password-stdin && goreleaser release --clean --snapshot"
release --clean --snapshot
# release-docs:
# name: Publish GH Pages
# runs-on: ubuntu-latest
Expand Down
14 changes: 7 additions & 7 deletions .goreleaser.yaml
Expand Up @@ -65,13 +65,13 @@ builds:
- CGO_ENABLED=1
- CC=o64-clang
- CXX=o64-clang++
dockers:
- dockerfile: build/Dockerfile.goreleaser
goos: linux
goarch: amd64
image_templates:
- "gojektech/darkroom:latest"
- "gojektech/darkroom:{{ .Tag }}"
#dockers:
#- dockerfile: build/Dockerfile.goreleaser
# goos: linux
# goarch: amd64
# image_templates:
# - "gojektech/darkroom:latest"
# - "gojektech/darkroom:{{ .Tag }}"
env:
- CGO_ENABLED=1
- GO111MODULE=on
Expand Down
100 changes: 0 additions & 100 deletions .goreleaser.yml

This file was deleted.

0 comments on commit b600ec4

Please sign in to comment.