Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hadjian committed Dec 5, 2023
1 parent dfe66ab commit 941ce59
Showing 1 changed file with 35 additions and 3 deletions.
38 changes: 35 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ on:
create:
tags:
- 'v*.*.*'

permissions:
contents: write

jobs:
build:
runs-on: ubuntu-latest

permissions:
contents: write

steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -45,3 +46,34 @@ jobs:
files:
tm_catalog_cli-linux_amd64
token: ${{ secrets.GITHUB_TOKEN }}

# From https://docs.github.com/en/actions/publishing-packages/publishing-docker-images
publich-docker:
if: startsWith(github.ref, 'refs/tags')
runs-on: ubuntu-latest

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

premissions:
contents: read
packages: write

- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}





0 comments on commit 941ce59

Please sign in to comment.