Skip to content

update base image

update base image #639

Workflow file for this run

name: Docker Image CI
on:
push:
branches:
- go-1.21
pull_request:
branches:
- go-1.21
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get Repo Owner
id: get_repo_owner
run: echo "repo_owner=$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_OUTPUT
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ steps.get_repo_owner.outputs.repo_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
push: ${{ github.event_name != 'pull_request' }}
tags: ghcr.io/${{ steps.get_repo_owner.outputs.repo_owner }}/golang-cross:latest
cache-from: type=gha
cache-to: type=gha,mode=max
- name: test example
run: cd example && make snapshot