Skip to content

ci/cd: add container workflow #1

ci/cd: add container workflow

ci/cd: add container workflow #1

Workflow file for this run

---
name: Build and Push Container
on:
push:
branches:
- main
jobs:
container-build-push:
runs-on: ubuntu-latest
steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and Push Container
uses: docker/build-push-action@v6
with:
file: Containerfile
push: true
tags: |
ghcr.io/sudomateo/yeetcode:latest
ghcr.io/sudomateo/yeetcode:${{ github.sha }}
platforms: |
linux/amd64
linux/arm64