Skip to content

publish latest

publish latest #2

name: publish latest
on:
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Log in to GitHub Docker Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Get repository lowercase
run: |
export REPOSITORY=${{ github.repository }}
echo "REPOSITORY_LOWER=$(echo "$REPOSITORY" | tr "[:upper:]" "[:lower:]")" >>${GITHUB_ENV}
echo "REPOSITORY_LOWER=${{ env.REPOSITORY_LOWER }}"
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push images
run: |
docker buildx build --push --platform linux/amd64,linux/arm64 --tag ghcr.io/${{ env.REPOSITORY_LOWER }}/valhalla:latest .