Skip to content

Commit

Permalink
ci: remove goreleaser step
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheu committed Sep 14, 2023
1 parent 3c815d3 commit 2a83bce
Showing 1 changed file with 8 additions and 35 deletions.
43 changes: 8 additions & 35 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,49 +48,22 @@ jobs:
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- uses: Surgo/docker-smart-tag-action@v1
id: smarttag
with:
docker_image: tsuru/deploy-agent
default_branch: main
tag_with_sha: 'true'
- name: docker login
uses: docker/login-action@v3
with:
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: push "latest" image tag to Docker Hub (tsuru/deploy-agent)
- name: push image tag to Docker Hub (tsuru/deploy-agent)
if: contains(github.ref, 'refs/heads/main')
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: tsuru/deploy-agent:latest
tags: ${{ steps.smarttag.outputs.tag }}
platforms: linux/amd64,linux/arm64

release:
if: github.event_name != 'pull_request' && github.repository == 'tsuru/deploy-agent' && startsWith(github.ref, 'refs/tags/')
needs:
- lint
- test
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

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

- name: docker login
uses: azure/docker-login@v1
with:
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}

- uses: actions/setup-go@v3
with:
go-version: '1.19'

- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: goreleaser/goreleaser-action@v2
with:
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 2a83bce

Please sign in to comment.