Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
# Conflicts:
#	.github/workflows/build.yml
#	.github/workflows/mover-build.yml
  • Loading branch information
BeryJu committed Jul 5, 2022
1 parent 261e4de commit 665b6c7
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 51 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/build.yml

This file was deleted.

24 changes: 24 additions & 0 deletions .github/workflows/korb-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: ci-build

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.18
cache: true
- name: Get dependencies
run: |
go get -v -t -d ./...
- name: Build
run: go build -v .
- name: Test
run: go test -v .
43 changes: 21 additions & 22 deletions .github/workflows/mover-build.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,30 @@
name: ci-build
name: ci-mover-build

on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker images
uses: docker/[email protected]
with:
context: mover
tags: ghcr.io/beryju/korb-mover:latest
push: ${{ github.ref == 'refs/heads/main' }}
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
- uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker images
uses: docker/[email protected]
with:
context: mover
tags: ghcr.io/beryju/korb-mover:latest
push: ${{ github.ref == 'refs/heads/main' }}
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: release
on:
push:
tags:
- 'v*'
- "v*"
jobs:
goreleaser:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 665b6c7

Please sign in to comment.