website/.gitea/workflows/pipeline-test.yml

46 lines
1.1 KiB
YAML
Raw Normal View History

2024-10-22 20:43:26 -04:00
name: Build and Deploy Docker Image
on:
push:
branches:
- ci-build
jobs:
build:
runs-on: docker
steps:
- name: Checkout code
uses: actions/checkout@v4
2024-10-22 20:53:10 -04:00
- name: Log in to Red Hat Registry
uses: https://github.com/redhat-actions/podman-login@v1
with:
password: ${{ secrets.PASSWORD }}
username: ${{ secrets.USERNAME }}
registry: git.thecodedom.com
2024-10-22 20:43:26 -04:00
- name: Buildah Action
2024-10-22 20:46:47 -04:00
uses: https://github.com/redhat-actions/buildah-build@v2
2024-10-22 20:43:26 -04:00
with:
image: my-new-image
tags: test
containerfiles: |
./Dockerfile
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v2
#
# - name: Log in to Gitea Container Registry
# uses: docker/login-action@v3
# with:
#
# - name: Build and push Docker image
# uses: docker/build-push-action@v6
# with:
# context: .
# push: true
# tags: git.thecodedom.com/dotechbro/dotechbro-website:latest