All checks were successful
Gitea Actions Demo / Build-Docker-Image (push) Successful in 20s
23 lines
774 B
YAML
23 lines
774 B
YAML
name: Gitea Actions Demo
|
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
|
on: [push]
|
|
|
|
jobs:
|
|
Build-Docker-Image:
|
|
runs-on: ubuntu-latest
|
|
# container: ghcr.io/catthehacker/ubuntu:act-latest
|
|
steps:
|
|
- name: Pull repo
|
|
uses: actions/checkout@v4
|
|
- name: Login to Docker Hub
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: swaous.asuscomm.com
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
- name: Build
|
|
run: |
|
|
docker build -t swaous.asuscomm.com/act-runner-test:${{ gitea.sha }} .
|
|
docker push swaous.asuscomm.com/act-runner-test:${{ gitea.sha }}
|
|
echo "pushed swaous.asuscomm.com/act-runner-test:${{ gitea.sha }}"
|