Skip to content

Commit

Permalink
deployment stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
sudorandom committed Aug 25, 2024
1 parent f7db951 commit d9990a8
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 31 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/docker.yml

This file was deleted.

43 changes: 43 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: release

on:
push:
tags:
- 'v*'
workflow_dispatch:

permissions:
contents: write

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

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

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

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

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

- name: Push
run: |
docker push --all-tags sudorandom/fauxrpc:latest
docker push --all-tags sudorandom/fauxrpc:latest

0 comments on commit d9990a8

Please sign in to comment.