Skip to content

Log upstream repository paths on cache hits #32

Log upstream repository paths on cache hits

Log upstream repository paths on cache hits #32

Workflow file for this run

name: build
on:
push:
branches:
- main
tags:
- '*'
workflow_dispatch:
concurrency:
group: build-workflow
cancel-in-progress: false
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Resolve tags
id: resolve_tags
run: |
{
echo "tags<<EOF"
if [[ "${GITHUB_REF:-}" == refs/tags/* ]]; then
tag="${GITHUB_REF#refs/tags/}"
echo "saltydk/svm:${tag}"
echo "saltydk/svm:latest"
else
echo "saltydk/svm:dev"
fi
echo "EOF"
} >> "$GITHUB_OUTPUT"
- name: Build and push
id: docker_build
uses: docker/build-push-action@v6
with:
platforms: linux/amd64
push: true
tags: ${{ steps.resolve_tags.outputs.tags }}