Skip to content

Commit

Permalink
updates :-)
Browse files Browse the repository at this point in the history
  • Loading branch information
StealWonders committed Mar 3, 2024
1 parent 764f1c3 commit d3c44ce
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 23 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/auto-publish-releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Login to GitHub container registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}

Expand Down
14 changes: 3 additions & 11 deletions .github/workflows/go.yml → .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,18 @@
name: Build & Test

on:
push:
branches: [ "*" ]
pull_request:
branches: [ "*" ]
on: [ push, pull_request ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.22

# - name: Install dependencies
# run: sudo apt update && sudo apt install -y libvips-dev --no-install-recommends

- name: Build
run: go build -v ./...

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/deploy-main-in-dev-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,23 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Login to GitHub container registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}

- name: Build and push Docker image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
push: true # Will only build if this is not here
tags: ${{ steps.meta.outputs.tags }}
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.22

# - name: Install dependencies
# run: sudo apt update && sudo apt install -y libvips-dev --no-install-recommends

- run: go mod download
- run: .github/workflows/check-fmt
- run: .github/workflows/check-generate

0 comments on commit d3c44ce

Please sign in to comment.