Skip to content

Commit

Permalink
fix: build release
Browse files Browse the repository at this point in the history
  • Loading branch information
Vovcharaa committed Dec 16, 2020
1 parent 4e43378 commit 78e5d3d
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,17 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
# create github release
# create github release

- name: Get Tag Name
run: echo TAG=${GITHUB_REF##*/} >> $GITHUB_ENV

- name: Set up Go
uses: actions/setup-go@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Install git-chglog3
run: |
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
Expand All @@ -33,15 +36,13 @@ jobs:
run: gh release create "$TAG" -F chglog.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
name: Login to GitHub Container Registry
uses: docker/login-action@v1
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
-
name: Build and push
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
Expand All @@ -50,4 +51,4 @@ jobs:
pull: true
tags: |
ghcr.io/vovcharaa/transmission-telegram-bot:latest
ghcr.io/vovcharaa/transmission-telegram-bot:$TAG
ghcr.io/vovcharaa/transmission-telegram-bot:${{ env.TAG }}

0 comments on commit 78e5d3d

Please sign in to comment.