Skip to content

same fix for remove #34

same fix for remove

same fix for remove #34

Workflow file for this run

name: build
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Login to GitHub Container Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Build and push
run: |
REPO_LOWERCASE=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')
TAG_BASE=ghcr.io/$REPO_LOWERCASE
docker build . -t $TAG_BASE:${{ github.sha }}
docker tag $TAG_BASE:${{ github.sha }} $TAG_BASE:${{ github.ref_name }}
docker tag $TAG_BASE:${{ github.sha }} $TAG_BASE:latest
docker push --all-tags $TAG_BASE