All checks were successful
Gitea Actions Demo / build-arch-toolbox (push) Successful in 6m9s
25 lines
959 B
YAML
25 lines
959 B
YAML
name: Gitea Actions Demo
|
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
|
on: [push]
|
|
|
|
jobs:
|
|
build-arch-toolbox:
|
|
runs-on: ubuntu-latest
|
|
if: gitea.ref == 'refs/heads/main'
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v4
|
|
- name: Login to Gitea Registry
|
|
uses: docker/login-action@v2
|
|
with:
|
|
registry: gitea.reeseapps.com
|
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|
|
- name: Build and push Docker image
|
|
uses: https://github.com/docker/build-push-action@v5
|
|
with:
|
|
context: ${{ gitea.workspace }}/infrastructure/graduated/fedora
|
|
file: ${{ gitea.workspace }}/infrastructure/graduated/fedora/Containerfile
|
|
push: true
|
|
tags: "gitea.reeseapps.com/services/arch-toolbox:latest,gitea.reeseapps.com/services/arch-toolbox:${{gitea.sha}}"
|
|
no-cache: true |