Skip to content

chore(deps): update octokit monorepo (#1393) #1701

chore(deps): update octokit monorepo (#1393)

chore(deps): update octokit monorepo (#1393) #1701

Workflow file for this run

name: "Docker build"
on:
push:
branches:
- master
tags:
- "v*"
jobs:
docker-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: earthly/actions-setup@43211c7a0eae5344d6d79fb4aaf209c8f8866203 # v1.0.13
with:
version: latest
github-token: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/metadata-action@369eb591f429131d6889c46b94e711f089e6ca96 # v5.6.1
id: docker_meta
with:
images: ghcr.io/kesin11/ci_analyzer
sep-tags: ","
tags: |
type=ref,event=branch
type=semver,pattern=v{{version}}
type=semver,pattern=v{{major}}
type=semver,pattern=v{{major}}.{{minor}}
- name: Login to ghcr
if: github.event_name != 'pull_request'
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker build and push latest tag
run: |
TAGS=$(echo "${{ steps.docker_meta.outputs.tags }}" | tr ',' ' ')
earthly --strict --push --max-remote-cache \
--remote-cache=ghcr.io/kesin11/ci_analyzer_earthly:cache \
+docker-push \
--TAGS "${TAGS}"