1
mirror of https://github.com/jlelse/GoBlog synced 2024-07-15 10:42:58 +00:00

Update GitHub actions

This commit is contained in:
Jan-Lukas Else 2024-07-09 10:43:09 +02:00
parent 58aee51e3a
commit e49b14ddf1
2 changed files with 15 additions and 15 deletions

View File

@ -22,23 +22,23 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 'stable'
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
queries: security-and-quality
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 'stable'
- name: Build
run: go build -tags=linux,sqlite_fts5 -o GoBlog
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"

View File

@ -10,40 +10,40 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
with:
config-inline: |
[registry."docker.io"]
mirrors = ["mirror.gcr.io"]
- 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: Login to Gitea container registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: git.jlel.se
username: nologin
password: ${{ secrets.GITEA_TOKEN }}
- name: Test
uses: docker/build-push-action@v4
uses: docker/build-push-action@v6
with:
push: false
target: test
tags: test
- name: Build base image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v6
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@v4
uses: docker/build-push-action@v6
with:
push: true
target: tools