Skip to content

Merge pull request #4 from JustAman62/dependabot/npm_and_yarn/ui/npm_… #3

Merge pull request #4 from JustAman62/dependabot/npm_and_yarn/ui/npm_…

Merge pull request #4 from JustAman62/dependabot/npm_and_yarn/ui/npm_… #3

Workflow file for this run

name: ci
on:
push:
branches:
- master
workflow_dispatch:
env:
REGISTRY: ghcr.io
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Calculate Version
run: |
git fetch --prune --unshallow --tags
echo "VERSION=$(git describe --tags | sed -e "s/-/./")" >> $GITHUB_ENV
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- 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 Docker image
uses: docker/build-push-action@v6
with:
context: .
build-args:
VERSION=${{ env.VERSION }}
push: true
tags: 'ghcr.io/justaman62/opentrivianight:${{ env.VERSION }},ghcr.io/justaman62/opentrivianight:latest'
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: linux/arm64