Skip to content

Commit

Permalink
fix: Wrong build file
Browse files Browse the repository at this point in the history
  • Loading branch information
Knoblauchpilze committed Apr 7, 2024
1 parent 0e08212 commit d2b1566
Showing 1 changed file with 12 additions and 23 deletions.
35 changes: 12 additions & 23 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,18 @@
# https://docs.github.com/en/actions/creating-actions/creating-a-composite-action
name: Build
on:
push:
branches:
- 'main'
name: Go
on: [push]

jobs:
docker:
build:
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: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v5
- uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
push: true
tags: user/app:latest
go-version: '1.22.x'
- name: Install dependencies
run: go get ./...
- name: Build
run: go build -v ./...

0 comments on commit d2b1566

Please sign in to comment.