frontendmentor/.gitea/workflows/build.yml

34 lines
716 B
YAML
Raw Normal View History

2025-01-03 10:19:44 -05:00
name: Build and Deploy Docker Image
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-docker
steps:
- name: Checkout code
uses: actions/checkout@v4
2025-01-03 10:25:08 -05:00
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to Gitea Container Registry
uses: docker/login-action@v3
with:
2025-01-03 10:32:47 -05:00
password: ${{ secrets.PUSH_TOKEN }}
2025-01-03 10:25:08 -05:00
username: ${{ github.repository_owner }}
registry: git.thecodedom.com
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: git.thecodedom.com/smig/frontendmentor:latest
2025-01-03 10:19:44 -05:00