Skip to content

Bump golang.org/x/net from 0.51.0 to 0.52.0 #96

Bump golang.org/x/net from 0.51.0 to 0.52.0

Bump golang.org/x/net from 0.51.0 to 0.52.0 #96

Workflow file for this run

name: Main workflow
on:
push:
branches: ["**"]
pull_request:
branches: ["**"]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: 'stable'
- name: Install SQLite development libraries
run: |
sudo apt-get update
sudo apt-get install -y libsqlite3-dev
- name: Run tests
env:
GOFLAGS: "-tags=linux,libsqlite3,sqlite_fts5"
run: |
go test -timeout 600s -cover ./...
build:
if: github.ref == 'refs/heads/master'
needs: test
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Login to GitHub container registry
uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Login to Gitea container registry
uses: docker/login-action@v4
with:
registry: git.jlel.se
username: nologin
password: ${{ secrets.GITEA_TOKEN }}
- name: Build base image
uses: docker/build-push-action@v7
with:
push: true
target: base
tags: ghcr.io/jlelse/goblog:latest,git.jlel.se/jlelse/goblog:latest
provenance: false
- name: Build tools image
uses: docker/build-push-action@v7
with:
push: true
target: tools
tags: ghcr.io/jlelse/goblog:tools,git.jlel.se/jlelse/goblog:tools
provenance: false
cleanup:
if: github.ref == 'refs/heads/master'
needs: build
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- uses: actions/delete-package-versions@v5
with:
package-name: ${{ github.event.repository.name }}
owner: ${{ github.repository_owner }}
package-type: 'container'
min-versions-to-keep: 0
delete-only-untagged-versions: 'true'