Skip to content

Commit

Permalink
update GHA for main branch
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Labarussias <issif+github@gadz.org>
  • Loading branch information
Issif committed Oct 12, 2023
1 parent 1980ac0 commit b24c374
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ jobs:
uses: magefile/mage-action@v2
with:
version: latest
args: build
args: build
24 changes: 7 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,27 +30,17 @@ jobs:
uses: goreleaser/goreleaser-action@v4
with:
install-only: true

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Run Mage
uses: magefile/mage-action@v2
with:
version: latest
args: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

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

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Push images to Dockerhub
run: |
docker manifest push --purge issif/falco-talon:latest
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion mageFile.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func Build() error {
mg.Deps(Test)

exportLDFlags()
return sh.RunV("goreleaser", "release", "--clean", "--snapshot", "--skip-sign", "--skip-sbom", "--skip-publish")
return sh.RunV("goreleaser", "release", "--clean", "--skip-sign", "--skip-sbom", "--skip-publish")
}

func Release() error {
Expand Down

0 comments on commit b24c374

Please sign in to comment.