Skip to content

Add docker builds

Add docker builds #1

name: Build and Push Docker Image
on:
push:
branches:
- main # Adjust this to your main branch
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
build-args:
- VITE_API_HOSTNAME: https://lineage-downloads.mainlining.org/

Check failure on line 32 in .github/workflows/build-docker-image.yml

View workflow run for this annotation

GitHub Actions / Build and Push Docker Image

Invalid workflow file

The workflow is not valid. .github/workflows/build-docker-image.yml (Line: 32, Col: 13): A sequence was not expected
tags: |
ghcr.io/${{ github.repository }}:latest
ghcr.io/${{ github.repository }}:${{ github.sha }}