Skip to content

Build and Push Latest Container Image #2

Build and Push Latest Container Image

Build and Push Latest Container Image #2

name: Build and Push Latest Container Image
on:
workflow_dispatch:
push:
branches:
- 'main'
paths-ignore:
- '.github/**'
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Remove unnecessary files
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
- name: Checkout
uses: actions/checkout@v4
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: quay.io/autopilot/autopilot
tags: latest
- name: Log into registry
uses: docker/login-action@v3
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: autopilot-daemon
push: true
tags: ${{ steps.meta.outputs.tags }}