Skip to content

Merge pull request #220 from whywaita/fix/support-new-nodejs-runtime #342

Merge pull request #220 from whywaita/fix/support-new-nodejs-runtime

Merge pull request #220 from whywaita/fix/support-new-nodejs-runtime #342

name: Build Docker image (sha)
on:
push:
branches:
- "**"
workflow_dispatch:
jobs:
docker-build-sha:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- name: Cache Docker layers
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/metadata-action@v5
id: meta
with:
images: ghcr.io/${{ github.repository_owner }}/myshoes
tags: |
type=sha
- name: Build container image
uses: docker/build-push-action@v5
with:
push: true
tags: ${{ steps.meta.outputs.tags }}