Skip to content

correct filename to trigger action 2nd try #1

correct filename to trigger action 2nd try

correct filename to trigger action 2nd try #1

Workflow file for this run

name: Build and Push Docker Image
on:
push:
branches:
- main
paths:
- Dockerfile
- poetry.lock
- pyproject.toml
- contactform/**/*
- .github/workflows/build-push.yaml
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write
steps:
- name: Checkout repository
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: Cache Docker layers
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Build and Push Docker Image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
tags: ghcr.io/vshn/conferenceli:latest
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
push: true