Skip to content

update entrypoint.sh #17

update entrypoint.sh

update entrypoint.sh #17

Workflow file for this run

name: main
on:
push:
branches:
- feature*
env:
IMAGE_NAME: ${{ github.repository }}
REGISTRY: ghcr.io
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: checkout
uses: actions/checkout@v4
- name: setup buildx
uses: docker/setup-buildx-action@v3.8.0
- name: login
uses: docker/login-action@v3.3.0
with:
password: ${{ secrets.GITHUB_TOKEN }}
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
- name: get metadata
id: metadata
uses: docker/metadata-action@v5.6.1
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=sha
- name: build and push
id: build-push
uses: docker/build-push-action@v6.10.0
with:
cache-from: type=gha
cache-to: type=gha,mode=max
context: .
labels: ${{ steps.metadata.outputs.labels }}
push: true
tags: ${{ steps.metadata.outputs.tags }}