Skip to content

fix: disk space on runner #1

fix: disk space on runner

fix: disk space on runner #1

name: Build and deploy when pushing on staging or main
on:
push:
branches:
- main
jobs:
build and push:

Check failure on line 9 in .github/workflows/build_and_push.yml

View workflow run for this annotation

GitHub Actions / Build and deploy when pushing on staging or main

Invalid workflow file

The workflow is not valid. .github/workflows/build_and_push.yml (Line: 9, Col: 3): The identifier 'build and push' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and and must be less than 100 characters.
name: Build to ${{ github.ref_name }}/${{ github.sha }}
runs-on: ubuntu-latest
env:
IMAGE_NAME: ghcr.io/${{ github.repository }}/app
IMAGE_TAG: ${{ github.sha }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push app
uses: docker/build-push-action@v6
with:
context: .
file: ./app/Dockerfile
push: true
tags: ${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }},${{ env.IMAGE_NAME }}:latest
cache-from: type=gha
cache-to: type=gha,mode=max