Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
  • Loading branch information
laszlocph committed Aug 12, 2024
1 parent fba54af commit 28ea250
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 19 deletions.
File renamed without changes.
36 changes: 17 additions & 19 deletions .github/workflows/publish-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ jobs:
go-version: 1.22.1
- name: ⬇️ Check out code into the Go module directory
uses: actions/checkout@v3
with:
fetch-depth: 5
- name: Version
id: version
run: |
Expand Down Expand Up @@ -52,20 +50,20 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
with:
asset_paths: '["./bin/gimlet*"]'
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v1
# - name: Login to GitHub Container Registry
# uses: docker/login-action@v1
# with:
# registry: ghcr.io
# username: ${{ github.repository_owner }}
# password: ${{ secrets.PAT }} # `PAT` is a secret that contains your Personal Access Token with `write:packages` scope
# # - name: Build and push Docker image
# uses: docker/build-push-action@v2
# with:
# context: .
# file: docker/cli/Dockerfile
# platforms: linux/amd64
# push: true
# tags: |
# ghcr.io/gimlet-io/gimlet-cli:${{ steps.version.outputs.version }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.PAT }} # `PAT` is a secret that contains your Personal Access Token with `write:packages` scope
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
file: docker/cli/Dockerfile
platforms: linux/amd64
push: true
tags: |
ghcr.io/gimlet-io/gimlet-cli:${{ steps.version.outputs.version }}
10 changes: 10 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,13 @@ jobs:
push: true
tags: |
ghcr.io/gimlet-io/gimlet:agent-${{ steps.version.outputs.version }}
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Gimlet ${{ steps.version.outputs.version }}
draft: false
prerelease: false

0 comments on commit 28ea250

Please sign in to comment.