Skip to content

chore: swap from docker-build-action to native docker command #84

chore: swap from docker-build-action to native docker command

chore: swap from docker-build-action to native docker command #84

Workflow file for this run

name: Build and Push Docker Container
on:
push:
branches: main
jobs:
deploy:
runs-on: ${{ matrix.runner }}
strategy:
matrix:
runner: [ubuntu-latest, ubuntu-24.04-arm]
permissions:
contents: read
packages: write
if: github.repository == 'PluralKit/dashboard'
steps:
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v4
- run: echo "BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
- name: Build docker image
run: |
docker build \
-t ghcr.io/pluralkit/dashboard-v2:${{ env.BRANCH_NAME }} \
-t ghcr.io/pluralkit/dashboard-v2:${{ github.sha }} \
-t ghcr.io/pluralkit/dashboard-v2:latest \
--build-arg base_api_url=https://api.beta.pluralkit.me \
--push \
.