Skip to content

Bump golang.org/x/text from 0.18.0 to 0.19.0 (#193) #472

Bump golang.org/x/text from 0.18.0 to 0.19.0 (#193)

Bump golang.org/x/text from 0.18.0 to 0.19.0 (#193) #472

Workflow file for this run

name: Docker Image Build
on: [ push ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Test
run: go test -v ./...
publish:
runs-on: ubuntu-latest
needs: [ test ]
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Cache Docker layers
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Login to DockerHub
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker meta
id: meta
uses: crazy-max/[email protected]
with:
images: |
ghcr.io/lukasbischof/luk4s.dev
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
- name: Build and push container
id: build
uses: docker/[email protected]
with:
file: Dockerfile
push: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new
- name: Image digest
run: |
echo "Digest: ${{ steps.build.outputs.digest }}"
- name: Move cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache