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

32 lines
682 B
YAML
Raw Permalink 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 ]
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
2024-12-06 18:37:48 +00:00
- name: Log in to Gitea Container Registry
2024-12-06 18:35:58 +00:00
uses: docker/login-action@v3
with:
registry: ${{ secrets.REGISTRY }}
2024-12-06 18:39:32 +00:00
username: ${{ secrets.USER }}
2024-12-06 18:35:58 +00:00
password: ${{ secrets.TOKEN }}
2024-12-06 17:00:11 +00:00
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
2024-12-06 18:42:16 +00:00
tags: ${{ secrets.REGISTRY }}/rannes.dev/sw-jobs-scraper:latest