Files
monacousa-portal/.gitea/workflows/create-and-push-image.yaml
Matt 45de58cbf3
Some checks failed
Build And Push Image / docker (push) Failing after 6s
Update GitHub Actions workflow to change runner to ubuntu-22.04
2025-08-06 15:28:22 +02:00

26 lines
710 B
YAML

name: Build And Push Image
on: [push]
jobs:
docker:
runs-on: ubuntu-22.04
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Login To Registry
uses: docker/login-action@v3
with:
registry: ${{ vars.REGISTRY_HOST }}
username: ${{ vars.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build Docker Image
run: |
docker build -t ${{ vars.REGISTRY_HOST }}/${{ vars.REGISTRY_USERNAME }}/${{ vars.IMAGE_NAME }}:latest .
- name: Push Docker Image
run: |
docker push ${{ vars.REGISTRY_HOST }}/${{ vars.REGISTRY_USERNAME }}/${{ vars.IMAGE_NAME }}:latest