diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 6ac007f..0afd7a7 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -13,19 +13,19 @@ jobs: platform: [ubuntu-latest] runs-on: ${{ matrix.platform }} steps: - - name: Setup Go ${{ matrix.go-version }} - uses: actions/setup-go@v1 - with: - go-version: ${{ matrix.go-version }} - - name: Checkout code into the Go module directory - uses: actions/checkout@v1 - - name: Install dependencies - run: | - sudo apt update - sudo apt install build-essential git sqlite libtag1-dev ffmpeg libasound-dev - - name: Lint - uses: golangci/golangci-lint-action@v2 - with: - version: v1.33 - - name: Test - run: go test ./... + - name: Setup Go ${{ matrix.go-version }} + uses: actions/setup-go@v1 + with: + go-version: ${{ matrix.go-version }} + - name: Checkout code into the Go module directory + uses: actions/checkout@v1 + - name: Install dependencies + run: | + sudo apt update + sudo apt install build-essential git sqlite libtag1-dev ffmpeg libasound-dev + - name: Lint + uses: golangci/golangci-lint-action@v2 + with: + version: v1.33 + - name: Test + run: go test ./... diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml index fbce55a..17bc61d 100644 --- a/.github/workflows/image.yml +++ b/.github/workflows/image.yml @@ -1,13 +1,11 @@ -name: main +name: image on: push: tags: - v* workflow_dispatch: - env: REGISTRY_IMAGE: sentriz/gonic - jobs: build: runs-on: ubuntu-latest @@ -15,7 +13,6 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 - - name: Set up Docker Buildx id: buildx uses: docker/setup-buildx-action@v1 @@ -23,13 +20,11 @@ jobs: install: true version: latest driver-opts: image=moby/buildkit:master - - name: Login to DockerHub uses: docker/login-action@v1 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_PASSWORD }} - - name: Build and Push uses: docker/build-push-action@v2 with: