chore(deps): update dependency @types/node to v20 (#1017) #1311
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Docker build" | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- 'v*' | |
jobs: | |
docker-push: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: earthly/[email protected] | |
with: | |
version: latest | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: docker/metadata-action@v5 | |
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@v3 | |
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}" |