sw-jobs-scraper/.gitea/workflows/build.yaml

36 lines
763 B
YAML
Raw Normal View History

2024-12-06 17:00:11 +00:00
name: Build and Push Docker Image
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
2024-12-06 18:31:27 +00:00
REGISTRY: gitea.rannes.dev
2024-12-06 17:00:11 +00:00
IMAGE_NAME: ${{ github.repository }}
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
# - name: Log in to GitHub Container Registry
# uses: docker/login-action@v3
# with:
# registry: ${{ env.REGISTRY }}
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest